diff --git a/input/input.go b/input/input.go index 77ecbd5a..92370ec7 100644 --- a/input/input.go +++ b/input/input.go @@ -95,6 +95,18 @@ func MakeBaseInput(outpoint *wire.OutPoint, witnessType WitnessType, } } +// NewBaseInput allocates and assembles a new *BaseInput that can be used to +// construct a sweep transaction. +func NewBaseInput(outpoint *wire.OutPoint, witnessType WitnessType, + signDescriptor *SignDescriptor, heightHint uint32) *BaseInput { + + input := MakeBaseInput( + outpoint, witnessType, signDescriptor, heightHint, + ) + + return &input +} + // CraftInputScript returns a valid set of input scripts allowing this output // to be spent. The returns input scripts should target the input at location // txIndex within the passed transaction. The input scripts generated by this