We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc654e9 commit a494d18Copy full SHA for a494d18
types/sign.go
@@ -12,7 +12,7 @@ import (
12
const (
13
14
// CryptoIDMask crypto type id mask
15
- CryptoIDMask = 0xffff8fff
+ CryptoIDMask = 0x3fff8fff
16
// AddressIDMask address id mask
17
AddressIDMask = 0x00007000
18
// AddressIDOffset offset len
@@ -34,7 +34,7 @@ func ExtractAddressID(signID int32) int32 {
34
35
// ExtractCryptoID extract crypto id from signature type id
36
func ExtractCryptoID(signID int32) int32 {
37
- return int32(int(signID) & CryptoIDMask)
+ return signID & CryptoIDMask
38
}
39
40
//GetSignName 获取签名类型
0 commit comments