Documentation ¶ Index ¶ type Crypto type Keychain func CreateKeychain(coloniesDirName string) (*Keychain, error) func (keychain *Keychain) AddPrvKey(id string, prvKey string) error func (keychain *Keychain) GetPrvKey(id string) (string, error) func (keychain *Keychain) Remove() error type Validator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Crypto ¶ type Crypto interface { GeneratePrivateKey() (string, error) GenerateID(prvKey string) (string, error) GenerateSignature(data string, prvKey string) (string, error) GenerateHash(data string) string RecoverID(data string, signature string) (string, error) } type Keychain ¶ type Keychain struct { // contains filtered or unexported fields } func CreateKeychain ¶ func CreateKeychain(coloniesDirName string) (*Keychain, error) func (*Keychain) AddPrvKey ¶ func (keychain *Keychain) AddPrvKey(id string, prvKey string) error func (*Keychain) GetPrvKey ¶ func (keychain *Keychain) GetPrvKey(id string) (string, error) func (*Keychain) Remove ¶ func (keychain *Keychain) Remove() error type Validator ¶ type Validator interface { RequireServerOwner(recoveredID string, serverID string) error RequireColonyOwner(recoveredID string, colonyID string) error RequireExecutorMembership(recoveredID string, colonyID string, approved bool) error } Source Files ¶ View all Source files crypto.go keychain.go validator.go Directories ¶ Show internal Expand all Path Synopsis crypto validator Click to show internal directories. Click to hide internal directories.