ScriptMatchFilter

class ScriptMatchFilter<T>(hash: (ByteArray) -> T) : MatchFilter<T>

Constructors

Link copied to clipboard
constructor(hash: (ByteArray) -> T)

Properties

Link copied to clipboard
val hash: (ByteArray) -> T
Link copied to clipboard

Functions

Link copied to clipboard
fun add(ba: ByteArray)

Add an item to the filter.

fun add(scr: SatoshiScript)
Link copied to clipboard
fun clear()

Reset the filter to empty.

Link copied to clipboard

Try to match the ba to the filter. A null ba never matches