Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotValidPublicAddr = &DIDTokenError{errors.New("Invalid public address format.")} ErrNotValidProof = &DIDTokenError{errors.New("Signature mismatch between 'proof' and 'claim'. Please " + "generate a new token with an intended issuer.")} ErrExpired = &DIDTokenError{errors.New("Given DID token has expired. Please generate a new one.")} ErrNbfExpired = &DIDTokenError{errors.New("Given DID token cannot be used at this time. Please " + "check the 'nbf' field and regenerate a new token with a suitable value.")} )
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type DIDTokenError ¶
type DIDTokenError struct {
// contains filtered or unexported fields
}
func (*DIDTokenError) Error ¶
func (e *DIDTokenError) Error() string
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
Token is representation of the DID token which contains proof (hash) and the serialized claim.
func (*Token) GetNbfGracePeriod ¶
GetNbfGracePeriod returns nbf time with grace period.
func (*Token) GetProof ¶
GetProof returns the hash of the Ethereum message with claim serialized in json.
func (*Token) GetPublicAddress ¶
GetPublicAddress split issuer on parts and returns only public address.
Click to show internal directories.
Click to hide internal directories.