Skip to content

Commit

Permalink
fix link and put new provable keys into 04-channel spec
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSripal committed Nov 6, 2024
1 parent ffb4ad3 commit 1144d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/core/v2/ics-004-channel-and-packet-semantics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Thus, constant-size commitments to packet data fields are stored under the packe

```typescript
function packetCommitmentPath(channelSourceId: bytes, sequence: BigEndianUint64): Path {
return "commitments/channels/{channelSourceId}/sequences/{sequence}"
return "{channelSourceId}|0x1|{bigEndianUint64Sequence}"
}
```

Expand All @@ -173,15 +173,15 @@ Packet receipt data are stored under the `packetReceiptPath`. In the case of a s

```typescript
function packetReceiptPath(channelDestId: bytes, sequence: BigEndianUint64): Path {
return "receipts/channels/{channelDestId}/sequences/{sequence}"
return "{channelDestId}|0x2|{bigEndianUint64Sequence}"
}
```

Packet acknowledgement data are stored under the `packetAcknowledgementPath`:

```typescript
function packetAcknowledgementPath(channelSourceId: bytes, sequence: BigEndianUint64): Path {
return "acks/channels/{channelSourceId}/sequences/{sequence}"
return "{channelSourceId}|0x3|{bigEndianUint64Sequence}"
}
```

Expand Down
6 changes: 3 additions & 3 deletions spec/core/v2/ics-024-host-requirements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ Future paths may be used in future versions of the protocol, so the entire key-s
| Value | Path format | Value type | Defined in |
| -------------------------- | ------------------------------------------------- | ---------- | ------------------------------------ |
| Packet Commitment | {channelIdentifier}|0x1|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-packet-semantics) |
| Packet Receipt | {channelIdentifier}|0x2|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-packet-semantics) |
| Acknowledgement Commitment | {channelIdentifier}|0x3|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-packet-semantics) |
| Packet Commitment | {channelIdentifier}|0x1|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-channel-and-packet-semantics) |
| Packet Receipt | {channelIdentifier}|0x2|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-channel-and-packet-semantics) |
| Acknowledgement Commitment | {channelIdentifier}|0x3|{bigEndianUint64Sequence} | bytes | [ICS 4](../ics-004-channel-and-packet-semantics) |
### Provable Commitments
Expand Down

0 comments on commit 1144d76

Please sign in to comment.