p2sh

package
v0.0.0-...-692641c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller provides application resources and handlers.

func NewController

func NewController() (*Controller, error)

NewController configures and returns application endpoints.

func (*Controller) Router

func (rs *Controller) Router() *chi.Mux

Router exposes p2sh endpoints

type P2shRequest

type P2shRequest struct {
	Req        int      `json:"req"`
	PublicKeys []string `json:"public_keys"`
}

P2shRequest is the request object for /p2sh

func (*P2shRequest) Bind

func (body *P2shRequest) Bind(r *http.Request) error

Bind checks for validation errors

type P2shResponse

type P2shResponse struct {
	P2shAddress string `json:"p2sh_address"`
}

P2shResponse is the response object for /p2sh

type Service

type Service struct {
	Net *chaincfg.Params
}

Service to generate and manage bitcoin p2sh address

func NewService

func NewService() *Service

NewService create a new p2sh service

Jump to

Keyboard shortcuts

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