Documentation ¶
Index ¶
- Constants
- func DeserializeTwoBigInt(data []byte) (*big.Int, *big.Int, error)
- func MustConvertPrivateKeyToEcdsa(privateKey crypto.PrivateKey) *ecdsa.PrivateKey
- func MustConvertPublicKeyToEcdsa(publicKey crypto.PublicKey) *ecdsa.PublicKey
- func SerializeTwoBigInt(one, two *big.Int) []byte
- type AlgorithmProvider
Constants ¶
View Source
const (
TwoBigIntBytesLength = expectedBigIntBytesLength * 2
)
Variables ¶
This section is empty.
Functions ¶
func DeserializeTwoBigInt ¶ added in v0.7.5
func MustConvertPrivateKeyToEcdsa ¶
func MustConvertPrivateKeyToEcdsa(privateKey crypto.PrivateKey) *ecdsa.PrivateKey
func SerializeTwoBigInt ¶ added in v0.7.5
Types ¶
type AlgorithmProvider ¶
type AlgorithmProvider interface { DataSigner(crypto.PrivateKey, insolar.Hasher) insolar.Signer DigestSigner(crypto.PrivateKey) insolar.Signer DataVerifier(crypto.PublicKey, insolar.Hasher) insolar.Verifier DigestVerifier(crypto.PublicKey) insolar.Verifier }
func NewECDSAProvider ¶
func NewECDSAProvider() AlgorithmProvider
Click to show internal directories.
Click to hide internal directories.