Skip to content

Panic #9

@shannona

Description

@shannona

I managed to panic the CLI with the following command:

CREDENTIAL=`envelope subject type arid 4676635a6e6068c2ef3ffd8ff726dd401fd341036e920f136a1d8af5e829496d |
    envelope assertion add pred-obj known isA string "Certificate of Completion" |
    envelope assertion add pred-obj known issuer string "Example Electrical Engineering Board" |
    envelope assertion add pred-obj known controller string "Example Electrical Engineering Board" |
    envelope assertion add pred-obj string "firstName" string "James" |
    envelope assertion add pred-obj string "lastName" string "Maxwell" |
    envelope assertion add pred-obj string "issueDate" date "2020-01-01" |
    envelope assertion add pred-obj string "expirationDate" date "2028-01-01" |
    envelope assertion add pred-obj string "photo" string "This is James Maxwell's photo." |
    envelope assertion add pred-obj string "certificateNumber" string "123-456-789" |
    envelope assertion add pred-obj string "subject" string "RF and Microwave Engineering" |
    envelope assertion add pred-obj string "continuingEducationUnits" number 1.5 |
    envelope assertion add pred-obj string "professionalDevelopmentHours" number 15 |
    envelope assertion add pred-obj string "topics" cbor "82695375626a6563742031695375626a6563742032" |
    envelope subject type wrapped |
    envelope sign $BOARD_PRVKEY_BASE |
    envelope assertion add pred-obj known note string "Signed by Example Electrical Engineering Board"`

thread 'main' panicked at /Users/ShannonA/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bc-envelope-cli-0.14.0/src/utils.rs:136:13:
not yet implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: No envelope provided

Obviously, the command was not right (that was sign instead of sign -s as I was trying to figure out the new way to do things), but it shouldn't panic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions