crypt0cloud_sdk_go

package module
v0.0.0-...-0c177b3 Latest Latest
Warning

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

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

README

crypt0cloud-sdk-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypt0Client

type Crypt0Client struct {
	Endpoint string
	Client   *http.Client
}

func GetClient

func GetClient(endpoint_url string, ctx context.Context) *Crypt0Client

func (Crypt0Client) Block_getLasts

func (d Crypt0Client) Block_getLasts() []model.Block

func (Crypt0Client) Coord_AddNode

func (d Crypt0Client) Coord_AddNode(coordinator_private []byte, coord_endpoint, node_endpoint string) string

func (Crypt0Client) Coord_CreateAPP

func (c Crypt0Client) Coord_CreateAPP(coord_endpoint string, coord_publ, coord_priv []byte, callback, appname string) (*model.Transaction, []byte, []byte)

func (Crypt0Client) Coord_RegisterMasterkey

func (d Crypt0Client) Coord_RegisterMasterkey(public_key []byte)

func (Crypt0Client) GroupCreate

func (c Crypt0Client) GroupCreate(transaction *model.Transaction, publicKey, privateKey []byte) []byte

func (Crypt0Client) Node_CreateUser

func (c Crypt0Client) Node_CreateUser(UserPublicKey, UserPrivateKey []byte) (*model.Transaction, []byte, []byte)

func (Crypt0Client) Node_GetCredentials

func (c Crypt0Client) Node_GetCredentials() *model.NodeIdentification

func (Crypt0Client) Node_SetUp

func (c Crypt0Client) Node_SetUp() bool

func (Crypt0Client) PostSingleTransaction

func (c Crypt0Client) PostSingleTransaction(transaction *model.Transaction, publicKey, privateKey []byte) []byte

func (Crypt0Client) SigningRequestCreate

func (c Crypt0Client) SigningRequestCreate(transaction *model.Transaction) []byte

func (Crypt0Client) SigningRequestGet

func (c Crypt0Client) SigningRequestGet(transactionid int64) *model.Transaction

func (Crypt0Client) SigningRequestSign

func (c Crypt0Client) SigningRequestSign(transaction *model.Transaction, publicKey, privateKey []byte) []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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