mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
ee0d92c6d2
Signed-off-by: Roman Khimov <roman@nspcc.ru>
19 lines
450 B
Go
19 lines
450 B
Go
package consensus
|
|
|
|
import (
|
|
"github.com/nspcc-dev/dbft"
|
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
|
)
|
|
|
|
// privateKey is a wrapper around keys.PrivateKey
|
|
// which implements the crypto.PrivateKey interface.
|
|
type privateKey struct {
|
|
*keys.PrivateKey
|
|
}
|
|
|
|
var _ dbft.PrivateKey = &privateKey{}
|
|
|
|
// Sign implements the dbft's crypto.PrivateKey interface.
|
|
func (p *privateKey) Sign(data []byte) ([]byte, error) {
|
|
return p.PrivateKey.Sign(data), nil
|
|
}
|