Skip to content
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

Transfer Privacy: Delayed Write Buffer + Bitwise-Trie of Bucketed Entries (DWB+BTBE) #99

Open
wants to merge 99 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
b54653b
update localsecret and secret-contract-optimizer versions
darwinzer0 May 13, 2024
5b80e60
remove decoy code
darwinzer0 May 14, 2024
822a306
update authors
darwinzer0 May 14, 2024
ad97a47
update cosmwasm-std, cosmwasm-storage, and secret toolkit versions
darwinzer0 May 14, 2024
32bd10c
fix tx history store as Addr bug
darwinzer0 May 15, 2024
22b2ff5
remove legacy transfer
darwinzer0 May 16, 2024
fba3895
dev: start dwb and remove denom from history storage
darwinzer0 May 18, 2024
c0a034e
adding rng
darwinzer0 May 18, 2024
3108d7a
balances key -> canonical addr
darwinzer0 May 18, 2024
a24d205
dev: settling owner in dwb
darwinzer0 May 19, 2024
3b538af
dwb array development
darwinzer0 May 22, 2024
e84160c
remove condition in constant_time_release
darwinzer0 May 23, 2024
d396dcd
fix constant time operations for saturated dwb
darwinzer0 May 25, 2024
7fd21bb
cleanup
darwinzer0 May 25, 2024
18a0540
fix random range
darwinzer0 May 25, 2024
448a626
fix random range for modulo bias
darwinzer0 May 25, 2024
9b56d0a
make list len u16 and handle full list
darwinzer0 May 25, 2024
338fc1a
dev: unsaturated buffer handling
darwinzer0 May 25, 2024
100dd72
query balance include dwb
darwinzer0 May 25, 2024
293f8af
start on txs query
darwinzer0 May 25, 2024
3e273f9
dev: handle undersaturated dwb
blake-regalia May 26, 2024
be5d6e9
query_transactions dev
darwinzer0 May 26, 2024
e556e98
Merge branch 'dwbs' into undersaturated
darwinzer0 May 26, 2024
f091807
Merge pull request #1 from SolarRepublic/undersaturated
darwinzer0 May 26, 2024
ecee6c5
query transactions w/ binary search
darwinzer0 Jun 4, 2024
069259e
cleanup
darwinzer0 Jun 4, 2024
32a42fd
tx history, plus transfer testing
darwinzer0 Jun 8, 2024
925f06c
add query balance to test
darwinzer0 Jun 8, 2024
554de79
move add recipient to dwb impl and perform mint
darwinzer0 Jun 11, 2024
d907276
dwb for additional tx types
darwinzer0 Jun 14, 2024
090463f
update transfer test for new mint settling
darwinzer0 Jun 14, 2024
fbdafa3
deposit and cleanup
darwinzer0 Jun 15, 2024
8cae7b3
fix wasm compilation, tests
darwinzer0 Jun 15, 2024
aa75d22
add TESTING dwb query
darwinzer0 Jun 15, 2024
b5093f1
update secretdev to localsecret
darwinzer0 Jun 15, 2024
8212dbf
add gas logging for testing
darwinzer0 Jun 16, 2024
e06150b
fix: R5a. and reuse released addr
blake-regalia Jun 27, 2024
c2d6ef9
fix: use existing entry address
blake-regalia Jun 27, 2024
5fddb99
Merge pull request #6 from SolarRepublic/dwbs-anti-random
darwinzer0 Jun 27, 2024
6a3a032
dev: bitwise-trie of stored balances
blake-regalia Jun 30, 2024
3d7de8b
dev: stored balances todos
darwinzer0 Jul 9, 2024
8d2d83e
update query_transactions
darwinzer0 Jul 10, 2024
5bccca2
refactor stored_balance to use stored_entry
darwinzer0 Jul 10, 2024
86cd753
dev: add child loop when inserting dwb entry
darwinzer0 Jul 10, 2024
c199827
comments
darwinzer0 Jul 10, 2024
06e82d7
dev: inc bit_pos
darwinzer0 Jul 10, 2024
bcd8938
dev: init btsb
darwinzer0 Jul 10, 2024
6ecd16b
dev: all unit tests pass with stored balances
darwinzer0 Jul 13, 2024
239bcc3
Merge pull request #8 from SolarRepublic/btsb-darwinzer0
blake-regalia Jul 14, 2024
a630732
dev: btsb -> btbe
blake-regalia Jul 14, 2024
e9986fc
dev: integration tests
blake-regalia Jul 31, 2024
f7e1d0c
fix: dwb_entry recipient and hkdf size
blake-regalia Aug 2, 2024
8e2fc97
style: x cfg macro
blake-regalia Aug 2, 2024
df34e04
all tracker code using cfg(gas_tracking)
darwinzer0 Aug 2, 2024
ceb74bf
Merge pull request #9 from SolarRepublic/btsb
darwinzer0 Aug 2, 2024
9a9c98c
chore: upgrade neutrino
blake-regalia Aug 2, 2024
b72211a
Merge pull request #10 from SolarRepublic/final-integration
blake-regalia Aug 2, 2024
3bbaa01
style: cleanup
blake-regalia Aug 2, 2024
d9abb00
fix: gas tracking response
blake-regalia Aug 2, 2024
bae3fd8
dev: snip50
darwinzer0 Aug 2, 2024
5d8d4b6
unit tests btbe
darwinzer0 Aug 3, 2024
2291658
cargo fmt
darwinzer0 Aug 3, 2024
4a91f5c
dev: transfer from
blake-regalia Aug 3, 2024
79e898e
Merge remote-tracking branch 'origin/dwb-s50' into final-integration
blake-regalia Aug 3, 2024
3ad29b9
dev: gas evaporation
blake-regalia Aug 3, 2024
45399d0
fix: tweak gas evaporation params
blake-regalia Aug 3, 2024
1f20825
fix: tweak gas evaporation params
blake-regalia Aug 3, 2024
44af4fc
style: code cleanup
blake-regalia Aug 3, 2024
cf0ef65
fix: inspectability
blake-regalia Aug 3, 2024
cb85125
fix: make evaporation optional
blake-regalia Aug 5, 2024
54fe07c
Merge pull request #12 from SolarRepublic/final-integration
blake-regalia Aug 5, 2024
4bdea0c
remove prng store, update create viewing key to make entropy optional
darwinzer0 Aug 8, 2024
4cd963c
Merge pull request #13 from SolarRepublic/no-prng-2
darwinzer0 Aug 8, 2024
9e62c8e
dev: snip52+53 implementation for mint, transfer, batch transfer, sen…
darwinzer0 Oct 15, 2024
055805c
dev: add remainder of notifications
darwinzer0 Oct 15, 2024
e78ee51
Merge pull request #14 from SolarRepublic/push-notifications
darwinzer0 Nov 24, 2024
508c33b
update dependencies
darwinzer0 Dec 18, 2024
495fddc
dev: integration of updates/fixes from migration contract
darwinzer0 Dec 18, 2024
55d195c
update docs
darwinzer0 Dec 18, 2024
a8cdb1d
remove sscrt specific error msg
darwinzer0 Dec 18, 2024
f90eae4
refactor contract source into smaller files
darwinzer0 Dec 19, 2024
5cf46e9
Merge pull request #25 from SolarRepublic/source-modularize
darwinzer0 Dec 19, 2024
fae2f66
Merge pull request #24 from SolarRepublic/updates-post-migration
darwinzer0 Dec 19, 2024
f3d7491
set notifications enabled in instantiate
darwinzer0 Dec 19, 2024
16fb344
make unit tests pass
darwinzer0 Dec 19, 2024
a1a6125
unit tests pass
darwinzer0 Dec 19, 2024
70135b2
formatting
darwinzer0 Dec 20, 2024
3c8418b
cargo fmt
darwinzer0 Dec 20, 2024
50f0001
fix linter error
darwinzer0 Dec 20, 2024
c55e7ba
fix linting
darwinzer0 Dec 20, 2024
8cba127
cargo fmt
darwinzer0 Dec 20, 2024
6b88eca
fix wasm-bindgen error
darwinzer0 Jan 4, 2025
4efe9dd
chore: upgrade deps
blake-regalia Jan 4, 2025
8a408d1
fix: code upload and env
blake-regalia Jan 4, 2025
a33e9f4
fix: gas tracking and makefile
blake-regalia Jan 4, 2025
e95ec5e
fix: cleanup
blake-regalia Jan 4, 2025
347352c
Merge pull request #26 from SolarRepublic/chore/upgrade-test-suite
darwinzer0 Jan 4, 2025
5839af7
fix legacy deposit denom bug
darwinzer0 Jan 7, 2025
5ed9ecf
clippy fix
darwinzer0 Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .cargo/config

This file was deleted.

1 change: 1 addition & 0 deletions .cargo/config
12 changes: 12 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[alias]
# Temporarily removed the backtraces feature from the unit-test run due to compilation errors in
# the cosmwasm-std package:
# cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", branch = "secret" }
# unit-test = "test --lib --features backtraces"
unit-test = "test --lib"
integration-test = "test --test integration"
schema = "run --example schema"

[features]
gas_tracking = []
gas_evaporation = []
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build results
/target
/tests/dwb/dist/
contract.wasm
contract.wasm.gz

Expand All @@ -19,3 +20,10 @@ contract.wasm.gz
# IDEs
*.iml
.idea

# Packages
node_modules/

# Private
.env
scrap/
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "bun",
"internalConsoleOptions": "neverOpen",
"request": "launch",
"name": "Debug File",
"program": "${file}",
"cwd": "${workspaceFolder}",
"stopOnEntry": false,
"watchMode": false
},
{
"type": "bun",
"internalConsoleOptions": "neverOpen",
"request": "launch",
"name": "Run File",
"program": "${file}",
"cwd": "${workspaceFolder}",
"noDebug": true,
"watchMode": false
},
{
"type": "bun",
"internalConsoleOptions": "neverOpen",
"request": "attach",
"name": "Attach Bun",
"url": "ws://localhost:6499/",
"stopOnEntry": false
}
]
}
33 changes: 33 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"eslint.enable": true,
"editor.fontSize": 11,
"scm.inputFontSize": 11,
"debug.console.fontSize": 10,
"markdown.preview.fontSize": 11,
"terminal.integrated.fontSize": 10,
"files.exclude": {
"dist": true,
"submodules": true,
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true
},
"editor.insertSpaces": false,
"editor.tabSize": 4,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.quoteStyle": "single",
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"eslint.workingDirectories": [
"./tests/dwb/src",
],
"eslint.validate": [
"javascript",
"typescript",
],
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
}
Loading
Loading