-
Notifications
You must be signed in to change notification settings - Fork 0
/
qos-keys.go
27 lines (22 loc) · 1.06 KB
/
qos-keys.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import (
"github.com/QOSGroup/js-keys/keys"
"github.com/gopherjs/gopherjs/js"
)
func main() {
js.Global.Set("qosKeys", map[string]interface{}{
//"Bech32ifyQOSAccPubkeyFromBase64PubKey": keys.Bech32ifyQOSAccPubkeyFromBase64PubKey,
//"Bech32ifyQOSAccAddressFromBase64PubKey": keys.Bech32ifyQOSAccAddressFromBase64PubKey,
//"Bech32ifyQOSAccAddressFromPubKey": keys.Bech32ifyQOSAccAddressFromPubKey,
//"Bech32ifyQOSAccAddress": keys.Bech32ifyQOSAccAddress,
//"Bech32ifyQOSAccPubKey": keys.Bech32ifyQOSAccPubKey,
"DecodeBase64": keys.DecodeBase64,
"EncodeBase64": keys.EncodeBase64,
"DeriveQOSKey": keys.DeriveQOSKey,
//"AddressFromPubKey": keys.AddressFromPubKey,
"Sign": keys.Sign,
"SignBase64Message": keys.SignBase64Message,
"VerifyBech32String": keys.VerifyBech32String,
"RecoverFromPrivateKey": keys.RecoverFromPrivateKey,
})
}