Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IssuerSeparator constant separator between DID identifier and name IssuerSeparator = "#" // IdentifierPrefix constant prefix for Iotics DID identifiers IdentifierPrefix = "did:iotics:" // IoticsPathPrefix Iotics path prefix used for deterministic keys IoticsPathPrefix = "iotics/0" // NamePattern regular expression for DID key names NamePattern = "[a-zA-Z\\-\\_0-9]{1,24}" )
Variables ¶
This section is empty.
Functions ¶
func Blake2bSum160 ¶
Blake2bSum160 Helper function to make blame2b.Sum160
func ValidateIdentifier ¶
ValidateIdentifier validates decentralised identifier. @param did: decentralised identifier
func ValidateKeyName ¶
ValidateKeyName validates key name.
func ValidatePublicKey ¶
ValidatePublicKey validated public key bytes are valid public key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.