Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package didtest provides Personas that can be used for testing. Each Persona has a name, crypto.PrivKey and associated crypto.PubKey and did.DID.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Persona ¶
type Persona int
Persona is a generic participant used for cryptographic testing.
const ( PersonaAlice Persona = iota + 1 PersonaBob PersonaCarol PersonaDan PersonaErin PersonaFrank )
The provided Personas were selected from the first few generic participants listed in this table.
func Personas ¶
func Personas() []Persona
Personas returns an (alphabetically) ordered list of the defined Persona values.
func (Persona) DID ¶
func (p Persona) DID() did.DID
DID returns a did.DID based on the Persona's Ed25519 public key.
func (Persona) PrivKey ¶
func (p Persona) PrivKey() crypto.PrivateKeySigningBytes
PrivKey returns the Ed25519 private key for the Persona.
 Click to show internal directories. 
   Click to hide internal directories.