2022-12-13 14:36:35 +00:00
|
|
|
package frostfsecdsa
|
2022-04-05 11:13:34 +00:00
|
|
|
|
2023-03-07 11:20:03 +00:00
|
|
|
import frostfscrypto "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/crypto"
|
2022-04-05 11:13:34 +00:00
|
|
|
|
|
|
|
func init() {
|
2022-12-13 14:36:35 +00:00
|
|
|
frostfscrypto.RegisterScheme(frostfscrypto.ECDSA_SHA512, func() frostfscrypto.PublicKey {
|
2022-04-05 11:13:34 +00:00
|
|
|
return new(PublicKey)
|
|
|
|
})
|
|
|
|
|
2022-12-13 14:36:35 +00:00
|
|
|
frostfscrypto.RegisterScheme(frostfscrypto.ECDSA_DETERMINISTIC_SHA256, func() frostfscrypto.PublicKey {
|
2022-04-19 08:11:29 +00:00
|
|
|
return new(PublicKeyRFC6979)
|
2022-04-05 11:13:34 +00:00
|
|
|
})
|
2022-03-10 12:25:14 +00:00
|
|
|
|
2022-12-13 14:36:35 +00:00
|
|
|
frostfscrypto.RegisterScheme(frostfscrypto.ECDSA_WALLETCONNECT, func() frostfscrypto.PublicKey {
|
2022-03-10 12:25:14 +00:00
|
|
|
return new(PublicKeyWalletConnect)
|
|
|
|
})
|
2022-04-05 11:13:34 +00:00
|
|
|
}
|