Package | Description |
---|---|
org.bitcoinj.protocols.channels |
Micropayment channels allow for rapid tiny payments to be made to a third party once a channel has been set up, using
some of the advanced features of the Bitcoin protocol.
|
Modifier and Type | Method and Description |
---|---|
ListenableFuture<PaymentIncrementAck> |
PaymentChannelClient.incrementPayment(Coin size)
Increments the total value which we pay the server.
|
ListenableFuture<PaymentIncrementAck> |
PaymentChannelClientConnection.incrementPayment(Coin size)
Increments the total value which we pay the server.
|
boolean |
PaymentChannelServerState.incrementPayment(Coin refundSize,
byte[] signatureBytes)
Called when the client provides us with a new signature and wishes to increment total payment by size.
|
ListenableFuture<PaymentIncrementAck> |
PaymentChannelClient.incrementPayment(Coin size,
com.google.protobuf.ByteString info,
org.spongycastle.crypto.params.KeyParameter userKey)
Increments the total value which we pay the server.
|
ListenableFuture<PaymentIncrementAck> |
IPaymentChannelClient.incrementPayment(Coin size,
com.google.protobuf.ByteString info,
org.spongycastle.crypto.params.KeyParameter userKey)
Increments the total value which we pay the server.
|
ListenableFuture<PaymentIncrementAck> |
PaymentChannelClientConnection.incrementPayment(Coin size,
com.google.protobuf.ByteString info,
org.spongycastle.crypto.params.KeyParameter userKey)
Increments the total value which we pay the server.
|
PaymentChannelClientState.IncrementedPayment |
PaymentChannelClientState.incrementPaymentBy(Coin size,
org.spongycastle.crypto.params.KeyParameter userKey)
Updates the outputs on the payment contract transaction and re-signs it.
|
void |
PaymentChannelClientState.initiate()
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
void |
PaymentChannelV1ClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey)
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
void |
PaymentChannelV2ClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey) |
abstract void |
PaymentChannelClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey)
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
Constructor and Description |
---|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup,
PaymentChannelClient.VersionSelector versionSelector)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
PaymentChannelClient.VersionSelector versionSelector)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
Copyright © 2016. All rights reserved.