package
0.6.3
Repository: https://github.com/onsonr/sonr.git
Documentation: pkg.go.dev

# Functions

AddAccount is a helper function to add a smart account to the list of smart accounts.
ComputeBitcoinAddr computes the Bitcoin address from a public key.
ComputeSonrAddr computes the Sonr address from a public key.
DefaultGenesis returns the default genesis state.
DefaultParams returns default module parameters.
No description provided by the author
No description provided by the author
ExecModuleAnys can be used to execute a list of messages towards a module when those messages are packed in Any messages.
Funds returns if any funds were sent during the execute or init request.
HasSender checks if the execution context was sent from the provided sender.
NewCustomPubKeyFromRawBytes creates a new CustomPubKey from raw bytes.
No description provided by the author
NewMsgUpdateParams creates new instance of MsgUpdateParams.
No description provided by the author
PackAny packs a protobuf Any message generically.
QueryModule can be used by an account to execute a module query.
No description provided by the author
RegisterAccountsInitHandler registers an initialisation handler for a smart account that uses protobuf.
RegisterAccountsQueryHandler registers a query handler for a smart account that uses protobuf.
No description provided by the author
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
Sender returns the sender of the execution request.
SenderIsAccountsModule returns true if the sender of the execution request is the accounts module.
SenderIsSelf checks if the sender of the request is the account itself.
UnpackAny unpacks a protobuf Any message generically.
Whoami returns the address of the account being invoked.

# Constants

DefaultIndex is the default global index.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParamsKey saves the current module params.
No description provided by the author

# Structs

No description provided by the author
Attenuation defines the attenuation of a resource.
Capability reprensents the available capabilities of a decentralized web node.
CustomPubKey represents a custom secp256k1 public key.
No description provided by the author
Document defines a DID document.
GenesisState defines the module genesis state.
MsgExecuteTx is the message type for the ExecuteTx RPC.
MsgExecuteTxResponse is the response type for the ExecuteTx RPC.
MsgLinkAssertion is the message type for the LinkAssertion RPC.
MsgLinkAssertionResponse is the response type for the LinkAssertion RPC.
MsgLinkAuthentication is the message type for the LinkAuthentication RPC.
MsgLinkAuthenticationResponse is the response type for the LinkAuthentication RPC.
MsgUnlinkAssertion is the message type for the UnlinkAssertion RPC.
MsgUnlinkAssertionResponse is the response type for the UnlinkAssertion RPC.
MsgUnlinkAuthentication is the message type for the UnlinkAuthentication RPC.
MsgUnlinkAuthenticationResponse is the response type for the UnlinkAuthentication RPC.
MsgUpdateParams is the Msg/UpdateParams request type.
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Params defines the set of module parameters.
PublicKey represents a public key.
QueryParamsResponse is the response type for the Query/Params RPC method.
Queryequest is the request type for the Query/Params RPC method.
QueryResolveResponse is the response type for the Query/Resolve RPC method.
QuerySignRequest is the request type for the Query/Sign RPC method.
QuerySignResponse is the response type for the Query/Sign RPC method.
QueryVerifyRequest is the request type for the Query/Verify RPC method.
QueryVerifyResponse is the response type for the Query/Verify RPC method.
Resource reprensents the available resources of a decentralized web node.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Verification represents a verification method.

# Interfaces

MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.

# Type aliases

AccountCreatorFunc is the exported type of AccountCreatorFunc.
AccountsExecuteBuilder is the exported type of AccountsExecuteBuilder.
AccountsInitBuilder is the exported type of AccountsInitBuilder.
AccountsInterface is the exported interface of an Account.
AccountsQueryBuilder is the exported type of AccountsQueryBuilder.
Dependencies is the exported type of Dependencies.