mock

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2PSignerStub added in v1.6.0

type P2PSignerStub struct {
	SignCalled                func(payload []byte) ([]byte, error)
	VerifyCalled              func(payload []byte, pid core.PeerID, signature []byte) error
	SignUsingPrivateKeyCalled func(skBytes []byte, payload []byte) ([]byte, error)
}

P2PSignerStub -

func (*P2PSignerStub) IsInterfaceNil added in v1.6.0

func (stub *P2PSignerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*P2PSignerStub) Sign added in v1.6.0

func (stub *P2PSignerStub) Sign(payload []byte) ([]byte, error)

Sign -

func (*P2PSignerStub) SignUsingPrivateKey added in v1.6.0

func (stub *P2PSignerStub) SignUsingPrivateKey(skBytes []byte, payload []byte) ([]byte, error)

SignUsingPrivateKey -

func (*P2PSignerStub) Verify added in v1.6.0

func (stub *P2PSignerStub) Verify(payload []byte, pid core.PeerID, signature []byte) error

Verify -

Jump to

Keyboard shortcuts

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