forked from unionlabs/union
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable mdformat through treefmt-nix
- Loading branch information
Showing
14 changed files
with
117 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
These abis are made by running `nix build .#hubble-abis`, and then applying the following transformation in order to get viem typechecking: | ||
|
||
1. Update file from .json to .ts format. For example, myAbi.json should be myAbi.ts, | ||
1. Add export and const assertion | ||
|
||
```diff | ||
-[ | ||
+ export const myAbi = [ | ||
{ | ||
"inputs": [{ "name": "owner", "type": "address" }], | ||
"name": "balanceOf", | ||
"outputs": [{ name: "balance", type: "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function", | ||
} | ||
-] | ||
+] as const | ||
``` | ||
|
||
source: https://github.com/wevm/wagmi/discussions/1084#discussioncomment-3891592 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: BLS Signatures | ||
--- | ||
|
||
Boneh–Lynn–Shacham (BLS) signatures form the foundation of [CometBLS](/docs/architecture/cometbls). They are cheaper to verify for both regular [IBC](/docs/concepts/ibc) and zero-knowledge proof (ZKP) based IBC. With BLS signatures, we can aggregate the public keys and the signatures and verify the aggregated signature with the aggregated private key. BLS signature aggregation has a few advantages: | ||
|
||
- Transaction size decreases compared to ECDSA verification. We do not need to transfer all signatures, just the aggregate. | ||
- On-chain computation cost decreases. Instead of verifying each signature, we verify the aggregate. | ||
- Zkp verification is much more efficient. | ||
- State growth is significantly reduced. | ||
|
||
Note that the Union validators do not produce zkps directly. This function is performed by [galois](/docs/architecture/cometbls). Relayers can produce proofs or use Union as a distributed sequencing layer through proof claims. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.