Documentation ¶
Index ¶
- Constants
- func ListenAndServeConsensusServer(config *config.Config, db *db.DB) error
- func ListenAndServeValidatorServer(config *config.Config, db *db.DB) error
- func ListenAndServeWrapperServer(config *config.Config, db *db.DB) error
- type ConsensusPubNonce
- type ConsensusServer
- func (cs *ConsensusServer) PublicKeyForNonce(ctx context.Context, request *proto.PublicKeyForNonceRequest) (*proto.PublicKeyForNonceResponse, error)
- func (cs *ConsensusServer) SchnorrPartialSign(ctx context.Context, request *proto.SchnorrPartialSignRequest) (*proto.SchnorrPartialSignResponse, error)
- type ValidatorServer
- func (vs *ValidatorServer) ConsensusSign(cardID string, nonce []byte, cardData *models.CardData) (*threshold.Signature, error)
- func (vs *ValidatorServer) DasId() string
- func (vs *ValidatorServer) DischargeMacaroon(consensusSignature *threshold.Signature) ([]byte, error)
- func (vs *ValidatorServer) GetHost() string
- func (vs *ValidatorServer) GetPort() string
- func (vs *ValidatorServer) Sign(ctx context.Context, request *proto.InvoiceRequest) (*proto.InvoiceResponse, error)
- type WrapperServer
Constants ¶
View Source
const (
ConsensusPort = "5052"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusPubNonce ¶
type ConsensusServer ¶
func (*ConsensusServer) PublicKeyForNonce ¶
func (cs *ConsensusServer) PublicKeyForNonce(ctx context.Context, request *proto.PublicKeyForNonceRequest) (*proto.PublicKeyForNonceResponse, error)
func (*ConsensusServer) SchnorrPartialSign ¶
func (cs *ConsensusServer) SchnorrPartialSign(ctx context.Context, request *proto.SchnorrPartialSignRequest) (*proto.SchnorrPartialSignResponse, error)
type ValidatorServer ¶
func (*ValidatorServer) ConsensusSign ¶
func (*ValidatorServer) DasId ¶
func (vs *ValidatorServer) DasId() string
func (*ValidatorServer) DischargeMacaroon ¶
func (vs *ValidatorServer) DischargeMacaroon(consensusSignature *threshold.Signature) ([]byte, error)
func (*ValidatorServer) GetHost ¶
func (vs *ValidatorServer) GetHost() string
func (*ValidatorServer) GetPort ¶
func (vs *ValidatorServer) GetPort() string
func (*ValidatorServer) Sign ¶
func (vs *ValidatorServer) Sign(ctx context.Context, request *proto.InvoiceRequest) (*proto.InvoiceResponse, error)
type WrapperServer ¶
func (*WrapperServer) Add ¶
func (s *WrapperServer) Add(ctx context.Context, request *proto.DASCardRequest) (*proto.DASCardResponse, error)
func (*WrapperServer) GetCardId ¶
func (s *WrapperServer) GetCardId(ctx context.Context, request *proto.CardIdRequest) (*proto.CardIdResponse, error)
Click to show internal directories.
Click to hide internal directories.