forked from TrueCloudLab/frostfs-sdk-go
17 lines
377 B
Go
17 lines
377 B
Go
|
package neofsecdsa
|
||
|
|
||
|
import neofscrypto "github.com/nspcc-dev/neofs-sdk-go/crypto"
|
||
|
|
||
|
func init() {
|
||
|
neofscrypto.RegisterScheme(neofscrypto.ECDSA_SHA512, func() neofscrypto.PublicKey {
|
||
|
return new(PublicKey)
|
||
|
})
|
||
|
|
||
|
neofscrypto.RegisterScheme(neofscrypto.ECDSA_DETERMINISTIC_SHA256, func() neofscrypto.PublicKey {
|
||
|
var key PublicKey
|
||
|
key.MakeDeterministic()
|
||
|
|
||
|
return &key
|
||
|
})
|
||
|
}
|