verify

fun verify(token: ByteArray, addressBytes: ByteArray, infoHash: Sha1Hash): Boolean

true if token is a valid write token for addressBytes+infoHash under either the current or the previous secret. This ports node::verify_token. A token of the wrong length is rejected outright (the token.length() != write_token_size guard).