registry

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityHolder

type IdentityHolder interface {
	identity.Signer
	PublicKeyProvider
}

func FromKeystore

func FromKeystore(keystore *keystore.KeyStore, address common.Address) IdentityHolder

type PublicKeyParts

type PublicKeyParts struct {
	Part1 []byte
	Part2 []byte
}

func SplitPublicKey

func SplitPublicKey(key *ecdsa.PublicKey) PublicKeyParts

type PublicKeyProvider

type PublicKeyProvider interface {
	GetPublicKey() (ecdsa.PublicKey, error)
}

type RegistrationData

type RegistrationData struct {
	PublicKey PublicKeyParts
	Signature *identity.DecomposedSignature
}

func CreateRegistrationData

func CreateRegistrationData(identityHolder IdentityHolder) (*RegistrationData, error)

func (*RegistrationData) String

func (proof *RegistrationData) String() string

type Registry

type Registry struct {
	generated.IdentityRegistrySession
	Address common.Address
}

func DeployRegistry

func DeployRegistry(owner *bind.TransactOpts, erc20address common.Address, backend bind.ContractBackend) (*Registry, error)

func (*Registry) LookupPublicKey

func (registry *Registry) LookupPublicKey(address common.Address) (*ecdsa.PublicKey, error)

func (*Registry) RegisterIdentity

func (registry *Registry) RegisterIdentity(data *RegistrationData) (*types.Transaction, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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