Minimal implementation of the Mimblewimble protocol.
Find a file
John Tromp 48efb693e2
Fixfees (#3481)
* add FeeFields type

* use FeeFields with ::zero and try_into().unwrap()

* fixed tests

* avoid 0 accept_base_fee

* add aggregate_fee_fields method for transaction

* implement std::fmt::Display trait for FeeFields

* make base_fee argument non-optional in libtx::mod::tx_fee

* add global and thread local accept_fee_base; use to simplify tests

* set unusually high fee base for a change

* revert to optional base fee argument; default coming from either grin-{server,wallet}.toml

* remove optional base fee argument; can be set with global::set_local_accept_fee_base instead

* define constant global::DEFAULT_ACCEPT_FEE_BASE and set global value

* add Transaction::accept_fee() method and use

* Manual (de)ser impl on FeeFields

* fix comment bug

* Serialize FeeFields as int in tx

* allow feefields: u32:into() for tests

* try adding height args everywhere

* make FeeFields shift/fee methods height dependent

* prior to hf4 feefield testing

* rename selected fee_fields back to fee for serialization compatibility

* fix test_fee_fields test, merge conflict, and doctest use of obsolete fee_fields

* make accept_fee height dependent

* Accept any u64 in FeeFields deser

Co-authored-by: Jasper van der Maarel <j@sper.dev>
2020-11-26 18:03:06 +01:00
.cargo windows cargo settings (#2632) 2019-02-26 16:48:45 +00:00
.ci try and call refreshenv before running tests on windows (#3498) 2020-11-23 16:58:59 +00:00
.github Rename Floonet to Testnet (#3431) 2020-10-07 09:36:02 -04:00
.hooks chore: pre-commit hook - format all staged files, re-add then commit (#3078) 2019-10-07 21:00:41 +01:00
api Fixfees (#3481) 2020-11-26 18:03:06 +01:00
chain Fixfees (#3481) 2020-11-26 18:03:06 +01:00
config Disable API v1 (#3503) 2020-11-25 19:36:29 +00:00
core Fixfees (#3481) 2020-11-26 18:03:06 +01:00
doc fixDAA; implement wtema (#3477) 2020-11-25 10:58:39 +00:00
etc Rename Floonet to Testnet (#3431) 2020-10-07 09:36:02 -04:00
keychain Rename Floonet to Testnet (#3431) 2020-10-07 09:36:02 -04:00
p2p Fixfees (#3481) 2020-11-26 18:03:06 +01:00
pool Fixfees (#3481) 2020-11-26 18:03:06 +01:00
servers Fixfees (#3481) 2020-11-26 18:03:06 +01:00
src Fixfees (#3481) 2020-11-26 18:03:06 +01:00
store use extend_from_slice when appending multiple hashes to hash file (#3497) 2020-11-24 14:24:19 +00:00
util add segmenter for generating segments from txhashset with consistent rewind (#3482) 2020-11-23 19:07:07 +00:00
.editorconfig [1.1.0] Merge master into 1.1.0 (#2720) 2019-04-01 11:47:48 +01:00
.gitignore ignore .vscode (#3333) 2020-05-24 23:34:33 +02:00
azure-pipelines.yml we have no patch file and nothing to patch (#3499) 2020-11-23 15:02:02 -05:00
Cargo.lock Refactor p2p reader (#3433) 2020-09-28 14:43:37 +01:00
Cargo.toml bump working version on master to 4.2.0-alpha.1 (#3443) 2020-09-15 17:26:44 +01:00
CODE_OF_CONDUCT.md Update Code of Conduct (#3447) 2020-09-22 17:15:37 +01:00
CONTRIBUTING.md Rename Floonet to Testnet (#3431) 2020-10-07 09:36:02 -04:00
LICENSE Create LICENSE 2017-06-29 09:24:44 -07:00
README.md credit where credit is due (#3356) 2020-06-16 18:41:09 +01:00
rustfmt.toml Update hyper/tokio/futures dependencies (#3214) 2020-02-18 23:45:27 +01:00
SECURITY.md fix: correct typo in SECURITY.md (#3462) 2020-10-08 09:46:48 -04:00

Build Status Coverage Status Chat Support Documentation Wiki Release Version License

Grin

Grin is an in-progress implementation of the Mimblewimble protocol. Many characteristics are still undefined but the following constitutes a first set of choices:

  • Clean and minimal implementation, and aiming to stay as such.
  • Follows the Mimblewimble protocol, which provides hidden amounts and scaling advantages.
  • Cuckoo Cycle proof of work in two variants named Cuckaroo (ASIC-resistant) and Cuckatoo (ASIC-targeted).
  • Relatively fast block time: one minute.
  • Fixed block reward over time with a decreasing dilution.
  • Transaction fees are based on the number of Outputs created/destroyed and total transaction size.
  • Smooth curve for difficulty adjustments.

To learn more, read our introduction to Mimblewimble and Grin.

Status

Grin is live with mainnet. Still, much is left to be done and contributions are welcome (see below). Check our mailing list archives for the latest status.

Contributing

To get involved, read our contributing docs.

Find us:

Getting Started

To learn more about the technology, read our introduction.

To build and try out Grin, see the build docs.

Philosophy

Grin likes itself small and easy on the eyes. It wants to be inclusive and welcoming for all walks of life, without judgement. Grin is terribly ambitious, but not at the detriment of others, rather to further us all. It may have strong opinions to stay in line with its objectives, which doesn't mean disrespect of others' ideas.

We believe in pull requests, data and scientific research. We do not believe in unfounded beliefs.

Credits

Tom Elvis Jedusor for the first formulation of Mimblewimble.

Andrew Poelstra for his related work and improvements.

John Tromp for the Cuckoo Cycle proof of work.

License

Apache License v2.0.