SignedPayloadSigner constructor

SignedPayloadSigner(
  1. XdrAccountID _signerAccountID,
  2. Uint8List _payload
)

Implementation

SignedPayloadSigner(this._signerAccountID, this._payload) {
  if (_payload.length > SIGNED_PAYLOAD_MAX_PAYLOAD_LENGTH) {
    throw Exception("invalid payload length, must be less than " +
        SIGNED_PAYLOAD_MAX_PAYLOAD_LENGTH.toString());
  }
  if (_signerAccountID.accountID.getEd25519() == null) {
    throw Exception(
        "invalid payload signer, only ED25519 public key accounts are supported currently");
  }
}