format
This commit is contained in:
parent
2da9275c9a
commit
3a1262db82
2 changed files with 44 additions and 44 deletions
BIN
cli/cli
BIN
cli/cli
Binary file not shown.
|
|
@ -1,10 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"fmt"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"github.com/boltcard/boltcard/crypto"
|
||||
"os"
|
||||
)
|
||||
|
||||
// inspired by parse_request() in lnurlw_request.go
|
||||
|
|
@ -45,12 +45,12 @@ func main() {
|
|||
|
||||
args := os.Args[1:]
|
||||
|
||||
if(len(args) != 4) {
|
||||
if len(args) != 4 {
|
||||
fmt.Println("error: should have arguments for: p c aes_decrypt_key aes_cmac_key")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// get from args
|
||||
// get from args
|
||||
p_hex := args[0]
|
||||
c_hex := args[1]
|
||||
aes_decrypt_key_hex := args[2]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue