client

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNCHClient

func NewNCHClient(sdkConfigFileAbsPath string) (nchClient, error)

func NewNCHQueryClient added in v1.0.9

func NewNCHQueryClient(sdkConfigFileAbsPath string) (lcd.LiteClient, error)

func NewNCHTXClient added in v1.0.9

func NewNCHTXClient(sdkConfigFileAbsPath string) (tx.TxClient, error)

Types

type CIPALUserRequest added in v1.0.9

type CIPALUserRequest struct {
	Params cipal.ADParam `json:"params"`
	Sig    MySignature   `json:"signature"`
}

func CIPALClaimReqFromBytes added in v1.0.9

func CIPALClaimReqFromBytes(bz []byte) (req CIPALUserRequest, pubkey secp256k1.PubKeySecp256k1, signature []byte, err error)

sdk API for user

bz: client req json
	e.g.:"{\"params\":{\"expiration\":\"2019-11-13T06:28:32.279212Z\",\"service_info\":{\"address\":\"nch1ugus2df3sydca3quula5yjqfntuq5aaxweezpt\",\"type\":1},\"user_address\":\"nch1ugus2df3sydca3quula5yjqfntuq5aaxweezpt\"},\"signature\":{\"pub_key\":\"02b2bf9a87dd7cf1ad998721ffef00713a4d5fb2bae0316eea04268ae877a0bcac\",\"signature\":\"c2b822b4ddfbce95feb44112bce0022bbce67126b9fd50447e9ce3e0d03000ac287698c4994a892834921d5c2e3fe901d13f078eb54b289286831afb8046afe0\"}}"

type MySignature added in v1.0.9

type MySignature struct {
	PubKey    string `json:"pub_key"`
	Signature string `json:"signature"`
}

type NCHClient

type NCHClient interface {
	basic.HttpClient
	lcd.LiteClient
	rpc.RPCClient
	tx.TxClient
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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