Address class
Constructors
-
Address({required Uint8List publicKey})
-
-
Address.fromAlgorandAddress({required String address})
-
Create a new Address from a given Algorand address.
This decodes the uppercased Algorand address to its raw bytes and
validating the address.
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
sign({required Account account, required Uint8List data})
→ Future<Signature>
-
Creates Signature compatible with ed25519verify TEAL opcode from data and
contract address (program hash).
-
toBytes()
→ Uint8List
-
Returns a copy of the public key address.
-
toString()
→ String
-
A string representation of this object.
inherited
-
toVerifyKey()
→ PublicKey
-
Returns address' public key in a form suitable for verification.
-
verify(Uint8List message, Signature signature)
→ Future<bool>
-
Verifies that the signature for the message is valid for the public key.
The message should have been prepended with "MX" when signing.
Static Methods
-
decodeAddress(String address)
→ Uint8List
-
Decode an encoded, uppercased Algorand address to a public key.
-
encodeAddress(Uint8List publicKey)
→ String
-
Encode a public key to a human-readable representation, with a 4-byte
checksum appended at the end, using SHA512/256.
-
forApplication(int applicationId)
→ Address
-
Get the escrow address of an application.
Returns the address corresponding to that application's escrow account.
-
isAlgorandAddress(String address)
→ bool
-
Check if the given address is a valid Algorand address.