Documentation ¶
Index ¶
- Constants
- func CreateAccount(c *fiber.Ctx) error
- func CreateChallenge() (challenge protocol.URLEncodedBase64, err error)
- func GetAccount(c *fiber.Ctx) error
- func GetDID(c *fiber.Ctx) error
- func GetDIDByAlias(c *fiber.Ctx) error
- func GetDIDByOwner(c *fiber.Ctx) error
- func GetOldestUnclaimed(c *fiber.Ctx) error
- func GetService(c *fiber.Ctx) error
- func GetServiceAssertion(c *fiber.Ctx) error
- func GetServiceAttestion(c *fiber.Ctx) error
- func ListAccounts(c *fiber.Ctx) error
- func ListAllUnclaimed(c *fiber.Ctx) error
- func ListDIDs(c *fiber.Ctx) error
- func ListDelegators(c *fiber.Ctx) error
- func ListServices(c *fiber.Ctx) error
- func ListValidators(c *fiber.Ctx) error
- func ReadInboxMessages(c *fiber.Ctx) error
- func SendInboxMessage(c *fiber.Ctx) error
- func SendTransaction(c *fiber.Ctx) error
- func SignWithAccount(c *fiber.Ctx) error
- func SubmitCancelUnbondingDelegation(c *fiber.Ctx) error
- func SubmitCreateValidator(c *fiber.Ctx) error
- func SubmitDelegate(c *fiber.Ctx) error
- func SubmitEditValidator(c *fiber.Ctx) error
- func SubmitUndelegate(c *fiber.Ctx) error
- func VerifyServiceAssertion(c *fiber.Ctx) error
- func VerifyServiceAttestion(c *fiber.Ctx) error
- func VerifyWithAccount(c *fiber.Ctx) error
Constants ¶
const ChallengeLength = 32
ChallengeLength - Length of bytes to generate for a challenge.¡¡
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
func CreateAccount(c *fiber.Ctx) error
func CreateChallenge ¶
func CreateChallenge() (challenge protocol.URLEncodedBase64, err error)
CreateChallenge creates a new challenge that should be signed and returned by the authenticator. The spec recommends using at least 16 bytes with 100 bits of entropy. We use 32 bytes.
func GetAccount ¶
func GetAccount(c *fiber.Ctx) error
func GetDIDByAlias ¶
func GetDIDByAlias(c *fiber.Ctx) error
func GetDIDByOwner ¶
func GetDIDByOwner(c *fiber.Ctx) error
func GetOldestUnclaimed ¶
func GetOldestUnclaimed(c *fiber.Ctx) error
func GetService ¶
func GetService(c *fiber.Ctx) error
func GetServiceAssertion ¶
func GetServiceAssertion(c *fiber.Ctx) error
func GetServiceAttestion ¶
func GetServiceAttestion(c *fiber.Ctx) error
func ListAccounts ¶
func ListAccounts(c *fiber.Ctx) error
func ListAllUnclaimed ¶
func ListAllUnclaimed(c *fiber.Ctx) error
func ListDelegators ¶
func ListDelegators(c *fiber.Ctx) error
This function lists the delegators of a validator in a blockchain network using gRPC in Go.
func ListServices ¶
func ListServices(c *fiber.Ctx) error
func ListValidators ¶
func ListValidators(c *fiber.Ctx) error
This function lists all validators using gRPC in a Fiber web framework.
func ReadInboxMessages ¶
func ReadInboxMessages(c *fiber.Ctx) error
func SendInboxMessage ¶
func SendInboxMessage(c *fiber.Ctx) error
func SendTransaction ¶
func SendTransaction(c *fiber.Ctx) error
func SignWithAccount ¶
func SignWithAccount(c *fiber.Ctx) error
func SubmitCancelUnbondingDelegation ¶
func SubmitCancelUnbondingDelegation(c *fiber.Ctx) error
The function submits a transaction to cancel a undelgation from a validator on the blockchain network using the first account of a user and provided parameters.
func SubmitCreateValidator ¶
func SubmitCreateValidator(c *fiber.Ctx) error
The function submits a transaction to create a validator on a blockchain network using the first account of a user and provided parameters.
func SubmitDelegate ¶
func SubmitDelegate(c *fiber.Ctx) error
The function submits a transaction to delegate to a validator on the blockchain network using the first account of a user and provided parameters.
func SubmitEditValidator ¶
func SubmitEditValidator(c *fiber.Ctx) error
The function submits a transaction to edit a validator on the blockchain network using the first account of a user and provided parameters.
func SubmitUndelegate ¶
func SubmitUndelegate(c *fiber.Ctx) error
The function submits a transaction to undelegate from a validator on the blockchain network using the first account of a user and provided parameters.
func VerifyServiceAssertion ¶
func VerifyServiceAssertion(c *fiber.Ctx) error
func VerifyServiceAttestion ¶
func VerifyServiceAttestion(c *fiber.Ctx) error
func VerifyWithAccount ¶
func VerifyWithAccount(c *fiber.Ctx) error
Types ¶
This section is empty.