bitcoinplugin

package
v0.0.0-...-2c2efe1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package bitcoinplugin - Milagro D-TA plugin that generates bitcoin addresses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

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

Network list of Cryptocurrency networks

type Service

type Service struct {
	defaultservice.Service
}

Service is the Milagro Bitcoin service

func NewService

func NewService() *Service

NewService returns a Bitcoin implementation of Service

func (*Service) Name

func (s *Service) Name() string

Name of the plugin

func (*Service) PrepareOrderPart1

func (s *Service) PrepareOrderPart1(order *documents.OrderDoc, reqExtension map[string]string) (fulfillExtension map[string]string, err error)

PrepareOrderPart1 adds the coin type to the order

func (*Service) PrepareOrderResponse

func (s *Service) PrepareOrderResponse(orderPart2 *documents.OrderDoc, reqExtension, fulfillExtension map[string]string) (commitment string, extension map[string]string, err error)

PrepareOrderResponse gets the updated order and returns the commitment and extension

func (*Service) ProduceBeneficiaryEncryptedData

func (s *Service) ProduceBeneficiaryEncryptedData(blsSK []byte, order *documents.OrderDoc, req *api.OrderSecretRequest) (encrypted []byte, extension map[string]string, err error)

ProduceBeneficiaryEncryptedData -

func (*Service) ProduceFinalSecret

func (s *Service) ProduceFinalSecret(seed, sikeSK []byte, order, orderPart4 *documents.OrderDoc, req *api.OrderSecretRequest, fulfillSecretRespomse *api.FulfillOrderSecretResponse) (secret, commitment string, extension map[string]string, err error)

ProduceFinalSecret -

func (*Service) ValidateOrderRequest

func (s *Service) ValidateOrderRequest(req *api.OrderRequest) error

ValidateOrderRequest checks if the Coin type is valid

func (*Service) ValidateOrderSecretRequest

func (s *Service) ValidateOrderSecretRequest(req *api.OrderSecretRequest, order documents.OrderDoc) error

ValidateOrderSecretRequest - checks incoming OrderSecret fields for Error, comparing to the Original Order

func (*Service) Vendor

func (s *Service) Vendor() string

Vendor of the plugin

Jump to

Keyboard shortcuts

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