Skip to content

Instantly share code, notes, and snippets.

@schmichael
Last active April 27, 2022 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmichael/079f6d68b4771c9e8f6b13a41589a0cd to your computer and use it in GitHub Desktop.
Save schmichael/079f6d68b4771c9e8f6b13a41589a0cd to your computer and use it in GitHub Desktop.
$ biscuit keypair --only-private-key > private-key-file
$ biscuit keypair --from-private-key-file private-key-file --only-public-key > public-key-file
$ echo 'right("file1");' | biscuit generate --private-key-file private-key-file - > biscuit-file.bc
$ biscuit inspect --raw-input biscuit-file.bc --public-key-file public-key-file
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Format(DeserializationError("deserialization error: DecodeError { description: \"unexpected end group tag\", stack: [] }"))', /home/schmichael/.cargo/registry/src/github.com-1ecc6299db9ec823/biscuit-cli-0.2.0/src/main.rs:193:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment