StaticfromStaticisChecks if the derivation path matches m/44'/637'/a'/c'/i', where a, c and i
are decimal integers and every level is hardened.
StaticfromCreates new account from a BIP-44 derivation path and a BIP-39 mnemonic.
The path has the form m/44'/637'/a'/c'/i': purpose 44, coin type 637, then account a,
change c and address index i, all hardened (e.g. m/44'/637'/0'/0'/0').
Keys are derived with SLIP-0010 for Ed25519.
Detailed description: https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
The mnemonic is trimmed, runs of whitespace are collapsed to one space and words are lower-cased; the result is then validated against the BIP-39 English wordlist and checksum.
Derivation path of the form m/44'/637'/a'/c'/i'.
BIP-39 mnemonic phrase (English wordlist).
SupraAccount
This is the key by which Supra account is referenced. It is the 32-byte of the SHA-3 256 cryptographic hash of the public key(s) concatenated with a signature scheme identifier byte
Address associated with the given account
This key enables account owners to rotate their private key(s) associated with the account without changing the address that hosts their account.
Authentication key for the associated account
StaticgetTakes source address and seeds and returns the resource account address
Address used to derive the resource account
The seed bytes
The resource account address
StaticgetTakes creator address and collection name and returns the collection id hash.
Collection id hash are generated as sha256 hash of (creator_address::collection_name)
Collection creator address
The collection name
The collection id hash
This key is generated with Ed25519 scheme. Public key is used to check a signature of transaction, signed by given account
The public key for the associated account
Signs specified buffer with account's private key
A buffer to sign
A signature HexString
Signs specified hexString with account's private key
A regular string or HexString to sign
A signature HexString
Verifies the signature of the message with the public key of the account
a signed message
the signature of the message
Derives account address, public key and private key
SupraAccountObject instance.
{
address: "0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591",
publicKeyHex: "0xf56d8524faf79fbc0f48c13aeed3b0ce5dd376b4db93b8130a107c0a5e04ba04",
privateKeyHex: `0x009c9f7c992a06cfafe916f125d8adb7a395fca243e264a8e56a4b3e6accf940
d2b11e9ece3049ce60e3c7b4a1c58aebfa9298e29a30a58a67f1998646135204`
}
Returns the account's non-secret data. JSON.stringify calls this method.
The address and the public key of the account
Returns the representation used by Node.js util.inspect and console.log,
containing the address and the public key of the account.
The inspection string
Creates new account instance. Constructor allows passing in an address, to handle account key rotation, where auth_key != public_key
OptionalprivateKeyBytes: Uint8Array<ArrayBufferLike>
Private key from which account key pair will be generated. If not specified, new key pair is going to be created.
Optionaladdress: MaybeHexString
Account address (e.g. 0xe8012714cd17606cee7188a2a365eef3fe760be598750678c8c5954eb548a591). If not specified, a new one will be generated from public key
Class for creating and managing Supra account
JSON.stringifyoutput, and Node.jsutil.inspectandconsole.logoutput, of an instance contain the address and the public key only. Browser developer tools list non-enumerable properties when a logged object is expanded, so they can still showsigningKey. SupraAccount.toPrivateKeyObject exports the private key.