Commit aac4fb5b authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Also print metadata version in irmameta tool

parent 7b040c80
...@@ -9,8 +9,8 @@ import ( ...@@ -9,8 +9,8 @@ import (
"encoding/json" "encoding/json"
"github.com/privacybydesign/irmago"
"github.com/mhe/gabi" "github.com/mhe/gabi"
"github.com/privacybydesign/irmago"
) )
func main() { func main() {
...@@ -51,7 +51,8 @@ func main() { ...@@ -51,7 +51,8 @@ func main() {
} }
fmt.Println("Signed :", meta.SigningDate().String()) fmt.Println("Signed :", meta.SigningDate().String())
fmt.Println("Expires :", meta.Expiry().String()) fmt.Println("Expires :", meta.Expiry().String())
fmt.Println("IsValid() :", meta.IsValid()) fmt.Println("IsValid :", meta.IsValid())
fmt.Println("Version :", meta.Version())
fmt.Println("KeyCounter :", meta.KeyCounter()) fmt.Println("KeyCounter :", meta.KeyCounter())
if key != nil { if key != nil {
fmt.Println("KeyExpires :", time.Unix(key.ExpiryDate, 0)) fmt.Println("KeyExpires :", time.Unix(key.ExpiryDate, 0))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment