Skip to main content

new_branch

Function new_branch 

Source
pub fn new_branch() -> String
Expand description

A branch token: the RFC’s magic cookie plus 64 bits from a cryptographic RNG.

The width is ours, not the RFC’s. A guessable branch lets an off-path attacker inject responses into a transaction, so this is not a place for a counter.