use iota to define entropy strengths
This commit is contained in:
parent
01b18036fe
commit
c9bf658583
|
@ -43,17 +43,13 @@ const (
|
||||||
|
|
||||||
type entropyStrength int
|
type entropyStrength int
|
||||||
|
|
||||||
|
// Valid entropy strengths
|
||||||
const (
|
const (
|
||||||
// EntropyStrength128 defines an entropy strength of 128 bits
|
EntropyStrength128 entropyStrength = 128 + 32*iota
|
||||||
EntropyStrength128 = entropyStrength(128)
|
EntropyStrength160
|
||||||
// EntropyStrength160 defines an entropy strength of 160 bits
|
EntropyStrength192
|
||||||
EntropyStrength160 = entropyStrength(160)
|
EntropyStrength224
|
||||||
// EntropyStrength192 defines an entropy strength of 192 bits
|
EntropyStrength256
|
||||||
EntropyStrength192 = entropyStrength(192)
|
|
||||||
// EntropyStrength224 defines an entropy strength of 224 bits
|
|
||||||
EntropyStrength224 = entropyStrength(224)
|
|
||||||
// EntropyStrength256 defines an entropy strength of 256 bits
|
|
||||||
EntropyStrength256 = entropyStrength(256)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Languages is a list of supported languages for which mnemonic keys can be generated
|
// Languages is a list of supported languages for which mnemonic keys can be generated
|
||||||
|
|
Loading…
Reference in New Issue