doid

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPI

func RegisterAPI(chain *core.BlockChain)

Types

type DOIDApi

type DOIDApi struct {
	// contains filtered or unexported fields
}

func (*DOIDApi) GetOwner

func (api *DOIDApi) GetOwner(params DOIDName) (string, error)

type DOIDName

type DOIDName struct {
	DOID  string     `json:"DOID"`
	Owner types.Hash `json:"owner"`
}

type PublicTransactionPoolAPI

type PublicTransactionPoolAPI struct {
}

func (*PublicTransactionPoolAPI) SendTransaction

func (api *PublicTransactionPoolAPI) SendTransaction(args TransactionArgs) (types.Hash, error)

func (*PublicTransactionPoolAPI) Sign

type TransactionArgs

type TransactionArgs struct {
	DOID      string     `json:"DOID"`
	Owner     types.Hash `json:"owner"`
	Signature types.Hash `json:"signature"`
	Prv       types.Hash `json:"private"`
}

Jump to

Keyboard shortcuts

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