@@ -3,37 +3,37 @@ package wallet
3
3
import "errors"
4
4
5
5
var (
6
- ErrNilKey = errors .New ("no mnemonic or private key" )
7
- ErrNilWallet = errors .New ("no mnemonic or private key or keystore" )
8
- ErrNilKeystore = errors .New ("no keystore" )
9
- ErrNilMetadata = errors .New ("no metadata" )
10
- ErrNotSigned = errors .New ("transaction not signed" )
11
- ErrNoPublicKey = errors .New ("transaction no public key" )
12
- ErrNilExtrinsic = errors .New ("nil extrinsic" )
13
- ErrAddress = errors .New ("err address" )
14
- ErrPublicKey = errors .New ("err publicKey" )
15
- ErrSeedOrPhrase = errors .New ("invalid seed length" )
6
+ // ErrNilKey = errors.New("no mnemonic or private key")
7
+ // ErrNilWallet = errors.New("no mnemonic or private key or keystore")
8
+ // ErrNilKeystore = errors.New("no keystore")
9
+ // ErrNilMetadata = errors.New("no metadata")
10
+ // ErrNotSigned = errors.New("transaction not signed")
11
+ // ErrNoPublicKey = errors.New("transaction no public key")
12
+ // ErrNilExtrinsic = errors.New("nil extrinsic")
13
+ // ErrAddress = errors.New("err address")
14
+ // ErrPublicKey = errors.New("err publicKey")
15
+ // ErrSeedOrPhrase = errors.New("invalid seed length")
16
16
17
17
ErrInvalidMnemonic = errors .New ("invalid mnemonic" )
18
18
19
- ErrWrongMetadata = errors .New ("wrong metadata" )
20
- ErrNoEncrypted = errors .New ("no encrypted data to decode" )
21
- ErrEncryptedLength = errors .New ("encrypted length is less than 24" )
22
- ErrInvalidParams = errors .New ("invalid injected scrypt params found" )
23
- ErrSecretLength = errors .New ("secret length is not 32" )
24
- ErrEncoded = errors .New ("encoded is nil" )
25
- ErrPkcs8Header = errors .New ("invalid Pkcs8 header found in body" )
26
- ErrPkcs8Divider = errors .New ("invalid Pkcs8 divider found in body" )
19
+ // ErrWrongMetadata = errors.New("wrong metadata")
20
+ // ErrNoEncrypted = errors.New("no encrypted data to decode")
21
+ // ErrEncryptedLength = errors.New("encrypted length is less than 24")
22
+ // ErrInvalidParams = errors.New("invalid injected scrypt params found")
23
+ // ErrSecretLength = errors.New("secret length is not 32")
24
+ // ErrEncoded = errors.New("encoded is nil")
25
+ // ErrPkcs8Header = errors.New("invalid Pkcs8 header found in body")
26
+ // ErrPkcs8Divider = errors.New("invalid Pkcs8 divider found in body")
27
27
28
- ErrNonPkcs8 = errors .New ("unable to decode non-pkcs8 type" )
29
- ErrNilPassword = errors .New ("password required to decode encrypted data" )
30
- ErrNoEncryptedData = errors .New ("no encrypted data available to decode" )
31
- ErrKeystore = errors .New ("decoded public keys are not equal" )
28
+ // ErrNonPkcs8 = errors.New("unable to decode non-pkcs8 type")
29
+ // ErrNilPassword = errors.New("password required to decode encrypted data")
30
+ // ErrNoEncryptedData = errors.New("no encrypted data available to decode")
31
+ // ErrKeystore = errors.New("decoded public keys are not equal")
32
32
33
- ErrPassword = errors .New ("password err" )
33
+ // ErrPassword = errors.New("password err")
34
34
35
- ErrNumber = errors .New ("illegal number" )
36
- ErrSign = errors .New ("sign panic error" )
35
+ // ErrNumber = errors.New("illegal number")
36
+ // ErrSign = errors.New("sign panic error")
37
37
38
- errMethodUnusable = errors .New ("TODO: Method not yet implemented" )
38
+ // errMethodUnusable = errors.New("TODO: Method not yet implemented")
39
39
)
0 commit comments