Documentation ¶
Index ¶
- type BLSBackend
- type Backend
- type FakeBackend
- func (s *FakeBackend) Aggregate(keys []gpbft.PubKey) (gpbft.Aggregate, error)
- func (s *FakeBackend) Allow(i int) gpbft.PubKey
- func (s *FakeBackend) GenerateKey() (gpbft.PubKey, any)
- func (v *FakeBackend) MarshalPayloadForSigning(nn gpbft.NetworkName, p *gpbft.Payload) []byte
- func (s *FakeBackend) Sign(_ context.Context, signer gpbft.PubKey, msg []byte) ([]byte, error)
- func (s *FakeBackend) Verify(signer gpbft.PubKey, msg, sig []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLSBackend ¶
func NewBLSBackend ¶
func NewBLSBackend() *BLSBackend
func (*BLSBackend) GenerateKey ¶
func (b *BLSBackend) GenerateKey() (gpbft.PubKey, any)
func (*BLSBackend) MarshalPayloadForSigning ¶
func (b *BLSBackend) MarshalPayloadForSigning(nn gpbft.NetworkName, p *gpbft.Payload) []byte
type FakeBackend ¶
type FakeBackend struct {
// contains filtered or unexported fields
}
func NewFakeBackend ¶
func NewFakeBackend() *FakeBackend
func (*FakeBackend) GenerateKey ¶
func (s *FakeBackend) GenerateKey() (gpbft.PubKey, any)
func (*FakeBackend) MarshalPayloadForSigning ¶
func (v *FakeBackend) MarshalPayloadForSigning(nn gpbft.NetworkName, p *gpbft.Payload) []byte
Click to show internal directories.
Click to hide internal directories.