Creates a new AuthorityInfo.
The authority type enum
The authority identifier as bytes
OptionalmaxDurationSlots: bigint | nullMaximum session duration (for session types)
ReadonlyidThe authority identifier as raw bytes
Returns true if this is an Ed25519 authority (token or session).
Returns true if this is a Secp256k1 authority (token or session).
Returns true if this is a Secp256r1 authority (token or session).
Returns true if this is a session authority type.
ReadonlymaxMaximum session duration in slots (only for session types)
Converts this authority data to a CreateAuthorityInfo object that can be used for wallet operations.
CreateAuthorityInfo for use with Swig wallet operations
ReadonlytypeThe authority type (enum from coder)
A lightweight wrapper around authority data that provides typed access and conversion to SDK types.
Example