Aptos Unity SDK
|
Represents an Authentication Key
During the account creation process, a 32-byte authentication key comes to exist first.
This authentication key is then returned as it is as the 32-byte account Address.
.
More...
Public Member Functions | |
AuthenticationKey (byte[] bytes) | |
Initialize the Authentication Key. | |
string | DerivedAddress () |
Derives hexadecimal Address from authentication key array of bytes. | |
Static Public Member Functions | |
static AuthenticationKey | FromMultiEd25519PublicKey (MultiEd25519PublicKey publicKey) |
Converts a K-of-N MultiEd25519PublicKey to AuthenticationKey with: auth_key = sha3-256(p_1 | � | p_n | K | 0x01) . K represents the K-of-N required for authenticating the transaction. 0x01 is the 1-byte scheme for multisig. . | |
static AuthenticationKey | FromEd25519PublicKey (byte[] publicKey) |
Converts single Public Key (bytes) into Authentication Key auth_key = sha3-256(pubkey_A | 0x00) where | denotes concatenation. The 0x00 is the 1-byte single-signature scheme identifier. . | |
Public Attributes | |
byte[] | bytes |
Byte array representing authentication key. | |
Represents an Authentication Key
During the account creation process, a 32-byte authentication key comes to exist first.
This authentication key is then returned as it is as the 32-byte account Address.
.
NOTE: Generating the authentication key for an account requires that you provide one of
the below 1-byte signature scheme identifiers for this account, i.e.,
whether the account is a single signature or a multisig account:
More info on account addresses found here.
|
inline |
Initialize the Authentication Key.
bytes | The raw byte array of the key itself. |
ArgumentException |
|
inline |
Derives hexadecimal Address from authentication key array of bytes.
|
inlinestatic |
Converts single Public Key (bytes) into Authentication Key
auth_key = sha3-256(pubkey_A | 0x00)
where | denotes concatenation. The 0x00 is the 1-byte single-signature scheme identifier.
.
publicKey | Publick key, in byte array format, used to generate the authentication key |
|
inlinestatic |
Converts a K-of-N MultiEd25519PublicKey to AuthenticationKey with:
auth_key = sha3-256(p_1 | � | p_n | K | 0x01)
. K
represents the K-of-N required for
authenticating the transaction. 0x01
is the 1-byte scheme for multisig.
.