Package org.bitcoindevkit
Class WitnessProgram
-
- All Implemented Interfaces:
public final class WitnessProgram
The version and program of a Segwit address.
-
-
Constructor Summary
Constructors Constructor Description WitnessProgram(UByte version, ByteArray program)
-
Method Summary
Modifier and Type Method Description final UByte
getVersion()
Version. final Unit
setVersion(UByte version)
Version. final ByteArray
getProgram()
The witness program. final Unit
setProgram(ByteArray program)
The witness program.
-
-
-
Method Detail
-
getVersion
final UByte getVersion()
Version. For example 1 for Taproot.
-
setVersion
final Unit setVersion(UByte version)
Version. For example 1 for Taproot.
-
getProgram
final ByteArray getProgram()
The witness program.
-
setProgram
final Unit setProgram(ByteArray program)
The witness program.
-
-