diff --git a/block/block_formatter.go b/block/block_formatter.go index 29dcc5e38..7639863d1 100644 --- a/block/block_formatter.go +++ b/block/block_formatter.go @@ -99,6 +99,9 @@ func symmetricEncrypt(createCipher func(key []byte) (cipher.Block, error), key [ } func decodeHexSuffix(s string, length int) ([]byte, error) { + if p := strings.Index(s, "-"); p >= 0 { + s = s[0:p] + } return hex.DecodeString(s[len(s)-length:]) }