exported

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyKeyToAddr

func VerifyKeyToAddr(verifyKey string) sdk.AccAddress

Types

type Claim

type Claim struct {
	Id           Did  `json:"id" yaml:"id"`
	KYCValidated bool `json:"KYCValidated" yaml:"KYCValidated"`
}

type Did

type Did = string

type DidCredential

type DidCredential struct {
	CredType []string `json:"type" yaml:"type"`
	Issuer   Did      `json:"issuer" yaml:"issuer"`
	Issued   string   `json:"issued" yaml:"issued"`
	Claim    Claim    `json:"claim" yaml:"claim"`
}

type DidDoc

type DidDoc interface {
	SetDid(did Did) error
	GetDid() Did
	SetPubKey(pubkey string) error
	GetPubKey() string
	Address() sdk.AccAddress
}

type IxoDid

type IxoDid struct {
	Did                 string `json:"did" yaml:"did"`
	VerifyKey           string `json:"verifyKey" yaml:"verifyKey"`
	EncryptionPublicKey string `json:"encryptionPublicKey" yaml:"encryptionPublicKey"`
	Secret              Secret `json:"secret" yaml:"secret"`
}

func (IxoDid) Address

func (id IxoDid) Address() sdk.AccAddress

func (IxoDid) String

func (id IxoDid) String() string

type Secret

type Secret struct {
	Seed                 string `json:"seed" yaml:"seed"`
	SignKey              string `json:"signKey" yaml:"signKey"`
	EncryptionPrivateKey string `json:"encryptionPrivateKey" yaml:"encryptionPrivateKey"`
}

func (Secret) String

func (s Secret) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL