Optional
roleId: numberData required to create a new authority.
this is usually used when creating a new Role from an unitialized authority, with the AddInstruction
This is the ID for the Authority.
This would usually the data that represents the Authority
For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.
For SessionBasedAuthority, It could be public key bytes, groth16 proof etc.
20-byte Secp256k1 address
Secp256k1 0x-prefixed address string
33-byte Secp256k1 compressed publickey bytes
Secp256k1 compressed publickey string
This is the Signer ID for the Authority.
This would usually the public key bytes that identifies the signer on behalf of the authority,
For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.
For SessionBasedAuthority, it is the Session Key.
Creates an AddAuthority
Instructon
The parameters required to create the Swig instruction.
The ID of the role signing the instruction.
Actions of the new authority
CreateAuthorityInfo of new Authority to add
The public key of the swig payer.
The public key of the swig
AddAuthority
Instruction.
Creates a Swig
instruction for initializing a new entity on-chain.
The serialized instruction for creating the Swig.
Data required to create a new authority.
this is usually used when creating a new Role from an unitialized authority, with the AddInstruction
Authority is initilized if a role id is assigned
boolean
Creates an RemoveAuthority
Instructon
The parameters required for RemoveAuthority
instruction.
The public key of the swig payer.
The ID of the role signing the instruction.
ID of the role to remove
The public key of the swig
RemoveAuthority
Instruction.
Creates a Sign
instruction for signing provided instructions with the Swig
The parameters required to create the Swig instruction.
The instructions the Swig is to sign.
The public key of the swig payer.
The ID of the role signing the instruction.
The public key of the swig
Sign
Instruction.
Static
fromStatic
fromStatic
from
Indicates if Authority is Session-based or not.
true
if Authority is Session-based