https://github.com/wavesplatform/zwaves/blob/master/zwaves_primitives/src/circuit/note.rs