types

package
v0.0.0-...-b2c4e65 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNodeUrlNotSet   = errors.New("node url not set")
	ErrKeystoreNotSet  = errors.New("keystore not set")
	ErrAddressNotSet   = errors.New("address not set")
	ErrEthClientNotSet = errors.New("eth client not set")
	ErrTxOptsNotSet    = errors.New("eth tx opts not set")
	ErrInvalidJWT      = errors.New("invalid jwt")
)

Functions

This section is empty.

Types

type Addresses

type Addresses struct {
	IdentityManager    common.Address
	PublicKeyRegistry  common.Address
	CredentialRegistry common.Address
}

type Client

type Client struct {
	Eth *ethclient.Client
	Ks  *Keystore
}

type ClientConf

type ClientConf struct {
	Keystore          *KeystoreConfig
	ContractAddresses *Addresses
	Network           *Network
}

type Connection

type Connection struct {
	Contracts *Contracts
	Network   *Network
	Client    *Client
	Tx        *TxClient
}

type Contracts

type Contracts struct {
	Instances *Instances
	Addresses *Addresses
}

type Did

type Did struct {
	Protocol     string
	Network      string
	NetworkId    string
	ProxyAddress string
}

func (*Did) String

func (d *Did) String() string
type Header struct {
	Algorithm    string `json:"alg,omitempty"`
	Type         string `json:"typ,omitempty"`
	JSONWebToken string `json:"jwk,omitempty"`
	KeyID        string `json:"kid,omitempty"`
}

type Instances

type Instances struct {
	IdentityManager    *identity.AlastriaContracts
	PublicKeyRegistry  *pkr.AlastriaContracts
	CredentialRegistry *credential.AlastriaContracts
}

type Keystore

type Keystore struct {
	Account       *keystore.Key
	HexPublicKey  string
	HexPrivateKey string
	PrivateKey    *ecdsa.PrivateKey
	PublicKey     *ecdsa.PublicKey
}

type KeystoreConfig

type KeystoreConfig struct {
	Path     string
	Password string
}

type Network

type Network struct {
	Id        *big.Int
	NodeUrl   string
	Network   string
	NetworkId string
}

type PSMHashStatus

type PSMHashStatus struct {
	Exists  bool
	PSMHash string
	Status  uint8
}

type PSMHashStatuses

type PSMHashStatuses struct {
	IssuerPSMHash  string
	SubjectPSMHash string
	Credential     string
	Status         uint8
}

type TxClient

type TxClient struct {
	Opts   *bind.TransactOpts
	Signer types.Signer
}

Jump to

Keyboard shortcuts

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