    public init(input: TW_Proto_BitcoinSigningInput) {
        let inputData = TWDataCreateWithNSData(try! input.serializedData())
        defer {
            TWDataDelete(inputData)
        }
        rawValue = TWBitcoinTransactionSignerCreate(inputData)
    }

    deinit {
        TWBitcoinTransactionSignerDelete(rawValue)