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