0.12.1 • Published 8 months ago

@canvas-js/ethereum-contracts v0.12.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

@canvas-js/ethereum-contracts

Contracts for onchain verification of Canvas messages created by the EIP712Signer verifiable signer.

Usage

TODO

How it works

Canvas is a CRDT/causal-graph environment where all operations are represented on a log.

Every log entry is a signed [Message<Action | Session>, Signature] tuple.

For example, a Session authorizes a new session key (did:key) and is serialized as a Message<Session>, which is then signed by the did:key that was authorized to create a Signature.

To exhaustively verify that a message was correctly signed to be appended to the log, you should verify that:

  • A session key (e.g. did:key) was authorized by a user (e.g. did:pkh:eip155:1:0x123...) in a Session. Sessions are verified using logic in the EIP712 signer.
  • That authorization message was signed by the did:key it authoriaed, i.e. there exists a Signature corresponding to the session wrapped as a message Message<Session>.
  • An action message was also signed by that did:key, i.e. there exists a valid Signature corresponding to the user's action wrapped as a message Message<Action>.
0.13.0-next.16

8 months ago

0.13.0-next.15

8 months ago

0.13.0-next.14

8 months ago

0.13.0-next.13

8 months ago

0.12.1

8 months ago

0.13.0-next.12

8 months ago

0.13.0-next.11

8 months ago

0.13.0-next.10

8 months ago

0.13.0-next.9

8 months ago

0.13.0-next.8

8 months ago

0.11.0

9 months ago

0.12.0

8 months ago

0.13.0-next.1

8 months ago

0.13.0-next.3

8 months ago

0.13.0-next.2

8 months ago

0.13.0-next.5

8 months ago

0.13.0-next.4

8 months ago

0.13.0-next.7

8 months ago

0.13.0-next.6

8 months ago

0.10.10

10 months ago

0.10.0

11 months ago

0.10.0-alpha.1

1 year ago

0.10.9

10 months ago

0.10.1

11 months ago

0.10.0-beta.2

1 year ago

0.10.2

11 months ago

0.10.0-beta.3

12 months ago

0.10.3

11 months ago

0.10.4

11 months ago

0.10.0-beta.1

1 year ago

0.10.5

11 months ago

0.10.6

10 months ago

0.10.7

10 months ago

0.10.0-beta.4

12 months ago

0.10.8

10 months ago

0.9.1

1 year ago

0.9.0

1 year ago

0.9.0-next.1

1 year ago