Optionaled25519OptionalmlOptionalsecp256k1Returns the on-trie identifier used for access keys and universal state initialization.
The curve-prefixed public key for Ed25519/secp256k1, or ml-dsa-65-hash: followed by
the Base58 SHA3-256 public-key digest for ML-DSA-65. A hashed handle cannot verify signatures.
Returns a string representation of the public key.
The string representation of the public key.
Verifies a message signature using the public key.
Signed message bytes. For secp256k1, supply the 32-byte digest; no prehash is applied.
Raw signature bytes. For secp256k1, only the first 64 bytes (compact r/s) are verified.
true if the signature is valid, otherwise false.
StaticfromStaticfromCreates a PublicKey instance from an encoded key string.
Base58 public key, preferably curve-prefixed (ed25519:, secp256k1:, or ml-dsa-65:).
Unprefixed legacy inputs infer secp256k1 for 64 decoded bytes and Ed25519 otherwise.
The PublicKey instance created from the encoded key string.
PublicKey representation that has type and bytes of the key.