-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warp readme #1780
Warp readme #1780
Conversation
@StephenButtolph would you be ok with including a note about special case handling for the Primary Network here or would you prefer to leave that to VMs? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good and the most comprehensive overview of AWM I have seen so far. Really enjoyed reading it
Co-authored-by: Martin Eckardt <[email protected]> Co-authored-by: rodrigo <[email protected]> Signed-off-by: aaronbuchwald <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]> Signed-off-by: aaronbuchwald <[email protected]>
+-----------------+----------+--------------------------+ | ||
| source_chain_id : [32]byte | 32 bytes | | ||
+-----------------+----------+--------------------------+ | ||
| payload : []byte | 4 + size(payload) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 bytes + size(payload) here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the length is encoded as uint32 followed by the payload
vms/platformvm/warp/README.md
Outdated
+-----------------+----------+--------------------------+ | ||
| payload : []byte | 4 + size(payload) | | ||
+-----------------+----------+--------------------------+ | ||
| 38 + size(payload) bytes| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Whatever we choose for the above we should do here to make it consistent
- What is this? Some header? I currently understand this to be a total, in which case i think this should actually be
4 + 32 + 4 = 40 + size(payload) bytes
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was incorrect, updating
|
||
BLS provides a way to aggregate signatures off chain into a single signature that can be efficiently verified on chain. | ||
|
||
## AWM Serialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this section we're making our own table diagrams but markdown supports this via https://www.markdownguide.org/extended-syntax/#tables
I'm not sure if you meant to do this if you prefer the ASCII look but this is something else to consider (I love ASCII, but others might hate it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is following the style we've used here: https://docs.avax.network/reference/avalanchego/p-chain/txn-format. Happy to change it to a more standard format throughout our docs, but don't think that should be a requirement for this PR.
vms/platformvm/warp/README.md
Outdated
- `networkID` is the unique ID of an Avalanche Network (Mainnet/Testnet) and provides replay protection for BLS Signers across different Avalanche Networks | ||
- `sourceChainID` is the `blockchainID` of the blockchain sending a message. This ensures that each blockchain can only sign a message with its own `blockchainID`. Note: the `blockchainID` is the hash of the transaction that created the blockchain on the Avalanche P-Chain. It serves as the unique identifier for the blockchain across the Avalanche Network. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
source_chain_id and network_id to be consistent with the diagram
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see prior comment
Co-authored-by: Joshua Kim <[email protected]> Signed-off-by: aaronbuchwald <[email protected]>
This PR adds a README to the Avalanche Warp package.