Skip to content

Commit

Permalink
token version
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Nov 29, 2024
1 parent 2c2538c commit 291f725
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 00.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ cashuBo2F0gqJhaUgA_9SLj17PgGFwgaNhYQFhc3hAYWNjMTI0MzVlN2I4NDg0YzNjZjE4NTAxNDkyMT
V3 and V4 Token can be transmitted in a binary format when applicable. For this the serialised token is prepended with a prefix and a version byte.

```
utf8('CRAW') <version_uint8> <serialised_token>
utf8('craw') utf8(<token_version>) <serialised_token>
```

- Token V3 Version: `utf8('CRAW') 0x01 cbor(token_object)`
- Token V4 Version: `utf8('CRAW') 0x02 cbor(token_object)`
- Token V3 Version: `utf8('craw') utf8("A") cbor(token_object)`
- Token V4 Version: `utf8('craw') utf8("B") cbor(token_object)`

[00]: 00.md
[01]: 01.md
Expand Down

0 comments on commit 291f725

Please sign in to comment.