It doesn't belong in bitcoin, and should not be confused with varint_t. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
See https://github.com/lightningnetwork/lightning-rfc/pull/619 and https://github.com/lightningnetwork/lightning-rfc/pull/619 for discussion. Signed-off-by: Christian Decker <decker.christian@gmail.com>
Move varint handling from tx.c and generalize it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>