gpt4 book ai didi

org.bitcoinj.wallet.WalletProtobufSerializer.hashToByteString()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 22:35:05 28 4
gpt4 key购买 nike

本文整理了Java中org.bitcoinj.wallet.WalletProtobufSerializer.hashToByteString()方法的一些代码示例,展示了WalletProtobufSerializer.hashToByteString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WalletProtobufSerializer.hashToByteString()方法的具体详情如下:
包路径:org.bitcoinj.wallet.WalletProtobufSerializer
类名称:WalletProtobufSerializer
方法名:hashToByteString

WalletProtobufSerializer.hashToByteString介绍

暂无

代码示例

代码示例来源:origin: HashEngineering/dashj

.setHash(hashToByteString(tx.getHash()))
     .setVersion((int) tx.getVersion());
  Protos.TransactionInput.Builder inputBuilder = Protos.TransactionInput.newBuilder()
    .setScriptBytes(ByteString.copyFrom(input.getScriptBytes()))
    .setTransactionOutPointHash(hashToByteString(input.getOutpoint().getHash()))
    .setTransactionOutPointIndex((int) input.getOutpoint().getIndex());
  if (input.hasSequence())
    Sha256Hash spendingHash = spentBy.getParentTransaction().getHash();
    int spentByTransactionIndex = spentBy.getParentTransaction().getInputs().indexOf(spentBy);
    outputBuilder.setSpentByTransactionHash(hashToByteString(spendingHash))
           .setSpentByTransactionIndex(spentByTransactionIndex);
if (appearsInHashes != null) {
  for (Map.Entry<Sha256Hash, Integer> entry : appearsInHashes.entrySet()) {
    txBuilder.addBlockHash(hashToByteString(entry.getKey()));
    txBuilder.addBlockRelativityOffsets(entry.getValue());

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

.setHash(hashToByteString(tx.getHash()))
     .setVersion((int) tx.getVersion());
  Protos.TransactionInput.Builder inputBuilder = Protos.TransactionInput.newBuilder()
    .setScriptBytes(ByteString.copyFrom(input.getScriptBytes()))
    .setTransactionOutPointHash(hashToByteString(input.getOutpoint().getHash()))
    .setTransactionOutPointIndex((int) input.getOutpoint().getIndex());
  if (input.hasSequence())
    Sha256Hash spendingHash = spentBy.getParentTransaction().getHash();
    int spentByTransactionIndex = spentBy.getParentTransaction().getInputs().indexOf(spentBy);
    outputBuilder.setSpentByTransactionHash(hashToByteString(spendingHash))
           .setSpentByTransactionIndex(spentByTransactionIndex);
if (appearsInHashes != null) {
  for (Map.Entry<Sha256Hash, Integer> entry : appearsInHashes.entrySet()) {
    txBuilder.addBlockHash(hashToByteString(entry.getKey()));
    txBuilder.addBlockRelativityOffsets(entry.getValue());

代码示例来源:origin: greenaddress/GreenBits

.setHash(hashToByteString(tx.getHash()))
     .setVersion((int) tx.getVersion());
  Protos.TransactionInput.Builder inputBuilder = Protos.TransactionInput.newBuilder()
    .setScriptBytes(ByteString.copyFrom(input.getScriptBytes()))
    .setTransactionOutPointHash(hashToByteString(input.getOutpoint().getHash()))
    .setTransactionOutPointIndex((int) input.getOutpoint().getIndex());
  if (input.hasSequence())
    Sha256Hash spendingHash = spentBy.getParentTransaction().getHash();
    int spentByTransactionIndex = spentBy.getParentTransaction().getInputs().indexOf(spentBy);
    outputBuilder.setSpentByTransactionHash(hashToByteString(spendingHash))
           .setSpentByTransactionIndex(spentByTransactionIndex);
if (appearsInHashes != null) {
  for (Map.Entry<Sha256Hash, Integer> entry : appearsInHashes.entrySet()) {
    txBuilder.addBlockHash(hashToByteString(entry.getKey()));
    txBuilder.addBlockRelativityOffsets(entry.getValue());

代码示例来源:origin: fr.acinq/bitcoinj-core

.setHash(hashToByteString(tx.getHash()))
     .setVersion((int) tx.getVersion());
  Protos.TransactionInput.Builder inputBuilder = Protos.TransactionInput.newBuilder()
    .setScriptBytes(ByteString.copyFrom(input.getScriptBytes()))
    .setTransactionOutPointHash(hashToByteString(input.getOutpoint().getHash()))
    .setTransactionOutPointIndex((int) input.getOutpoint().getIndex());
  if (input.hasSequence())
    Sha256Hash spendingHash = spentBy.getParentTransaction().getHash();
    int spentByTransactionIndex = spentBy.getParentTransaction().getInputs().indexOf(spentBy);
    outputBuilder.setSpentByTransactionHash(hashToByteString(spendingHash))
           .setSpentByTransactionIndex(spentByTransactionIndex);
if (appearsInHashes != null) {
  for (Map.Entry<Sha256Hash, Integer> entry : appearsInHashes.entrySet()) {
    txBuilder.addBlockHash(hashToByteString(entry.getKey()));
    txBuilder.addBlockRelativityOffsets(entry.getValue());

代码示例来源:origin: fr.acinq/bitcoinj-core

confidenceBuilder.setOverridingTransaction(hashToByteString(overridingHash));

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

confidenceBuilder.setOverridingTransaction(hashToByteString(overridingHash));

代码示例来源:origin: greenaddress/GreenBits

confidenceBuilder.setOverridingTransaction(hashToByteString(overridingHash));

代码示例来源:origin: fr.acinq/bitcoinj-core

walletBuilder.setLastSeenBlockHash(hashToByteString(lastSeenBlockHash));
walletBuilder.setLastSeenBlockHeight(wallet.getLastBlockSeenHeight());

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

walletBuilder.setLastSeenBlockHash(hashToByteString(lastSeenBlockHash));
walletBuilder.setLastSeenBlockHeight(wallet.getLastBlockSeenHeight());

代码示例来源:origin: HashEngineering/dashj

walletBuilder.setLastSeenBlockHash(hashToByteString(lastSeenBlockHash));
walletBuilder.setLastSeenBlockHeight(wallet.getLastBlockSeenHeight());

代码示例来源:origin: greenaddress/GreenBits

walletBuilder.setLastSeenBlockHash(hashToByteString(lastSeenBlockHash));
walletBuilder.setLastSeenBlockHeight(wallet.getLastBlockSeenHeight());

代码示例来源:origin: HashEngineering/dashj

confidenceBuilder.setOverridingTransaction(hashToByteString(overridingHash));

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com