GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — About "new BitcoinSecret()" · Issue #92 · ProgrammingBlockchain/ProgrammingBlockchain

About "new BitcoinSecret()" #92

New issue
Copy link
New issue
Copy link
Open
Open
About "new BitcoinSecret()"#92
Copy link

Description

@youngminpark2559
youngminpark2559
opened on Nov 23, 2017
Issue body actions

At this page:
https://github.com/youngmtool/ProgrammingBlockchain/blob/master/bitcoin_transfer/spend_your_coin.md

This sentence:
var bitcoinPrivateKey = new BitcoinSecret("cSZjE4aJNPpBtU6xvJ6J4iBzDgTmzTjbq8w2kqnYvAprBCyTsG4x");

Is cSZjE4aJNPpBtU6xvJ6J4iBzDgTmzTjbq8w2kqnYvAprBCyTsG4x a Base58 string or a Base58Check string?

IntelliSense shows it's a Base58.

If it is a Base58 string, is that generated bitcoinPrivateKey a Base58Check?

This code:
var bitcoinPrivateKey = new
BitcoinSecret("cSZjE4aJNPpBtU6xvJ6J4iBzDgTmzTjbq8w2kqnYvAprBCyTsG4x");
is for showing the simple way of generating a Bitcoin secret by using BitcoinSecret constructor and a Base58 string?
This has nothing to do with the above example code which starts with "var network = Network.Main;"?

Activity

  1. NicolasDorier commented on Nov 28, 2017

    @NicolasDorier
    NicolasDorier
    on Nov 28, 2017
    Collaborator
    More actions

    Base58Check. This code show how to deserialize a Base58Check string into a BitcoinSecret object.

  2. youngminpark2559 commented on Nov 28, 2017

    @youngminpark2559
    youngminpark2559
    on Nov 28, 2017
    ContributorAuthor
    More actions

    @NicolasDorier Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.