signer

package
v0.2.0-fix-1-test Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APITokenMD = "API-KEY"
)

Variables

View Source
var DefaultSignerChainConfig = &SignerConfig{
	GRPCAddress:   model.SignerGRPCAddress,
	WhitelistCIDR: []string{model.WhiteListCIDR},
	GasLimit:      210000,
}

Functions

This section is empty.

Types

type SignerConfig

type SignerConfig struct {
	GRPCAddress        string
	APIKey             string
	WhitelistCIDR      []string
	GasLimit           uint64
	OperatorPrivateKey string
	FundingPrivateKey  string
	SealPrivateKey     string
	ApprovalPrivateKey string
	GcPrivateKey       string
}

type SignerServer

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

SignerServer signer service

func NewSignerServer

func NewSignerServer(config *SignerConfig, chainConfig *gnfd.GreenfieldChainConfig) (*SignerServer, error)

NewSignerServer return SignerServer instance

func (*SignerServer) AuthInterceptor

func (signer *SignerServer) AuthInterceptor() grpc.UnaryServerInterceptor

AuthInterceptor returns a new unary server interceptors that performs per-request auth.

func (*SignerServer) DiscontinueBucketOnChain added in v0.2.0

DiscontinueBucketOnChain implements v1.SignerServiceServer

func (*SignerServer) IPWhitelistInterceptor

func (signer *SignerServer) IPWhitelistInterceptor() grpc.UnaryServerInterceptor

IPWhitelistInterceptor returns a new unary server interceptors that performs per-request ip whitelist.

func (*SignerServer) Name

func (signer *SignerServer) Name() string

Name describe service name

func (*SignerServer) SealObjectOnChain

SealObjectOnChain implements v1.SignerServiceServer

func (*SignerServer) SignBucketApproval

SignBucketApproval implements v1.SignerServiceServer

func (*SignerServer) SignIntegrityHash

SignIntegrityHash implements v1.SignerServiceServer

func (*SignerServer) SignObjectApproval

SignObjectApproval implements v1.SignerServiceServer

func (*SignerServer) SignPingMsg

SignPingMsg signs the ping msg for p2p node

func (*SignerServer) SignPongMsg

SignPongMsg signs the pong msg for p2p node

func (*SignerServer) SignReplicateApprovalReqMsg

SignReplicateApprovalReqMsg signs the get approval request msg for p2p node

func (*SignerServer) SignReplicateApprovalRspMsg

SignReplicateApprovalRspMsg signs the get approval response msg for p2p node

func (*SignerServer) Start

func (signer *SignerServer) Start(ctx context.Context) error

Start a service, this method should be used in non-block form

func (*SignerServer) Stop

func (signer *SignerServer) Stop(ctx context.Context) error

Stop a service, this method should be used in non-block form

func (*SignerServer) VerifyBucketApproval

VerifyBucketApproval implements v1.SignerServiceServer

func (*SignerServer) VerifyObjectApproval

VerifyObjectApproval implements v1.SignerServiceServer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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