use iota to define entropy strengths

This commit is contained in:
Andrea Franz 2018-03-15 00:29:56 +01:00
parent 01b18036fe
commit c9bf658583
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 6 additions and 10 deletions

View File

@ -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