Abstract
Abstract
idAbstract
sessionIndicates if Authority is Session-based or not. true
if Authority is Session-based
Abstract
signerThis 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.
Abstract
typeData required to create a new authority.
this is usually used when creating a new Role from an unitialized authority, with the AddInstruction
Abstract
addCreates 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
Optional
options?: InstructionDataOptionsThe public key of the swig payer.
The public key of the swig
AddAuthority
Instruction.
Abstract
createCreates a Swig
instruction for initializing a new entity on-chain.
The serialized instruction for creating the Swig.
Abstract
createData 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
Abstract
removeCreates an RemoveAuthority
Instructon
The parameters required for RemoveAuthority
instruction.
Optional
options?: InstructionDataOptionsThe 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.
Abstract
signCreates 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.
Optional
options?: InstructionDataOptionsThe public key of the swig payer.
The ID of the role signing the instruction.
The public key of the swig
Sign
Instruction.
Abstract
subAbstract
subAbstract
subAbstract
subAbstract
sub
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.