signOffchainMessageEnvelope
Given an array of CryptoKey objects which are private keys pertaining to addresses that are
required to sign an offchain message envelope, this method will return a new signed envelope of
type FullySignedOffchainMessageEnvelope.
This function will throw unless the resulting message is fully signed.
Type Parameters
| Type Parameter |
|---|
TOffchainMessageEnvelope extends OffchainMessageEnvelope |
Parameters
| Parameter | Type |
|---|---|
keyPairs | CryptoKeyPair[] |
offchainMessageEnvelope | TOffchainMessageEnvelope |
Returns
Promise<FullySignedOffchainMessageEnvelope & TOffchainMessageEnvelope>
Example
See
partiallySignOffchainMessageEnvelope if you want to sign the message without asserting that the resulting message envelope is fully signed.