Skip to content

Instantly share code, notes, and snippets.

@kayabaNerve
kayabaNerve / guaranteed_addresses.md
Last active November 3, 2022 00:29
[Deprecated] Monero - Guaranteed Addresses

This has been deprecated for Featured Addresses.

Guaranteed Addresses

Monero payments are not guaranteed to be spendable, when individual transactions are scanned. Only when the entire chain is scanned will you learn if an output has conflicts, and only with the private spend key can you see if one of those conflicts has been spent, already having burnt all potentially usable outputs. This makes view-only scanning of the chain insecure, under the standing policy of "credit difference", as the wallet will credit the difference even if the funds are already burnt.

It should be noted wallet2 will stop crediting the difference if it knows the key image was used, as it should, yet it will continually credit if view-only, as it'll never learn when key images are used (unless imported, which may break a desired privacy model). Unfortunately, this is not an issue with a simple fix. Solely crediting the initial transfer potentially leaves fun

@kayabaNerve
kayabaNerve / lib.rs
Created May 22, 2021 11:32
Linux-only mc_wry which allows handling the display server being accessible.
extern crate libc;
use std::{
ptr,
mem,
os::raw::c_char,
ffi::{CStr, CString}
};
use serde_json;
@kayabaNerve
kayabaNerve / parseSend.nim
Created February 6, 2021 20:50
parseSend supporting missing work.
import ../../../lib/[Errors, Hash]
import ../../../Wallet/Wallet
import ../../../Database/Transactions/objects/SendObj
import ../SerializeCommon
proc parseSend*(
sendStr: string,
diff: uint32,
#Constructor 1.
proc newSketcher*[T](): Sketcher[T] {.inline, forceCheck: [].} =
@[]
#Constructor 2.
proc newSketcher*[T](
elements: seq[T] = @[]
): Sketcher[T] {.forceCheck: [].} =
result = @[]
for element in elements:
import tables
#Valid object times.
type NaturalObjectKind* = enum
nokBoolean, nokInt, nokString, nokArray, nokObject
#Natural Object.
type NaturalObject* = ref object of RootObj
case kind*: NaturalObjectKind
of nokBoolean:

Keybase proof

I hereby claim:

  • I am kayabanerve on github.
  • I am techaspirer (https://keybase.io/techaspirer) on keybase.
  • I have a public key ASCSYCHgV_SH_oBFWZp_chFXw-R-AawQgVbKfx_9Oi1lego

To claim this, I am signing this object: