LabWired
회로 설계·펌웨어 실행·변형 비교·Playground 결과 확인, 오픈소스, 무료 체험
.NET 프레임워크용 포괄적인 비트코인 라이브러리
Comprehensive Bitcoin library for the .NET framework.
개발 도구C# · ShellGitHub @MetacoSA직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
설치형 프로젝트는 배포 도메인 없이도 확인할 수 있습니다. 개인 저장소는 GitHub 로그인으로, 조직 저장소는 위의 저장소 확인 파일로 직접 확인해 주세요.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗NBitcoin is the most complete Bitcoin library for .NET. It implements all most relevant Bitcoin Improvement Proposals (BIPs). It also provides low level access to Bitcoin primitives so you can easily build your application on top of it. Join us in our mattermost chat room. It works on Windows, Mac and Linux with Xamarin, Unity, .NET or Framework. (Porting to Unity should not be that hard if you need it)
The best documentation available is our eBook, and the excellent unit tests. There are also some more resources below.
You can also browse the API easily through the API reference.
In .NET Core:
dotnet add package NBitcoin
If using legacy .NET Framework in Visual Studio
Install-Package NBitcoin
You can also just use the Manage NuGet Package window on your project in Visual Studio.
Go on the NuGet website for more information.
The packages support:
To compile it by yourself, you can git clone, open the project and hit the compile button in Visual Studio.
First, you need to understand Bitcoin, for this read:
Once you get familiar with Bitcoin terminology with this book, follow up by reading:
This will teach you how to use NBitcoin in a practical way.
Install-Package NBitcoin.Altcoins
Find more information here.
When a new version of NBitcoin, NBitcoin.Altcoins or NBitcoin.TestFramework is released on Nuget, we also upload a separate symbol package (snupkg) with SourceLink enabled. This is enabled from version 4.1.1.73.
This means that it is possible to debug into NBitcoin code, and the source will be fetched transparently from github.
This works on both Visual Studio Code and Visual Studio for Windows.
You need to run at least Visual Studio 15.9. Then, you need to:
Tools / Options / Debugging / General and turn off Enable Just My Code.Tools / Options / Debugging / Symbols and add https://symbols.nuget.org/download/symbols to the Symbol file (.pdb) locations, make sure it is checked.You should also check Microsoft Symbol Server or your debugging experience in visual studio will be slowed down.
Now you can Debug your project and step inside any call to NBitcoin.
Inside your launch.json, add the following to .NET Core Launch (console) configuration:
"justMyCode": false,
"symbolOptions": {
"searchPaths": [ "https://symbols.nuget.org/download/symbols" ],
"searchMicrosoftSymbolServer": true
},
Now you can Debug your project and step inside any call to NBitcoin.
Find more information here.
You should use at least Unity 2018.2 using Script Runtime Version .NET 4.x Equivalent and Api Compatibility Level .NET Standard 2.0.
You can see more on this post.
Then you need to compile NBitcoin:
git clone https://github.com/MetacoSA/NBitcoin/
cd NBitcoin/NBitcoin
dotnet publish -c Release -f netstandard2.0
Remove-Item -Force -Recurse .\bin\Release\netstandard2.0\publish\runtimes\
Then put the libraries of .\bin\Release\netstandard2.0 into your asset folder.
If you need altcoins support, use the same step but with cd NBitcoin/NBitcoin.Altcoins instead.
If you want to use .NET Core, first install .NET Core as documented here.
Then:
mkdir MyProject
cd MyProject
dotnet new console
dotnet add package NBitcoin
dotnet restore
Then edit your Program.cs:
using System;
using NBitcoin;
namespace _125350929
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World! " + new Key().GetWif(Network.Main));
}
}
}
You can then run with
dotnet run
We advise you to use Visual Studio Code as the editor for your project.
NBitcoin notably includes:
Please read our ebook to understand the capabilities.
NBitcoin is inspired by Bitcoin Core code but provides a simpler object oriented API (e.g., new Key().PubKey.Address.ToString() to generate a key and get the associated address). It relies on the BouncyCastle cryptography library instead of OpenSSL, yet replicates OpenSSL bugs to guarantee compatibility. NBitcoin also ports the integrality of Bitcoin Core unit tests with their original data in order to validate the compatibility of the two implementations.
NBitcoin is licensed under the MIT License and we encourage you to use it to explore, learn, debug, play, share and create software for Bitcoin and with other Metaco services.
Here an example which assume you run Tor with SOCKS5 proxy on port 9050.
var connectionParameters = new NodeConnectionParameters();
connectionParameters.TemplateBehaviors.Add(new SocksSettingsBehavior(Utils.ParseEndpoint("localhost", 9050)));
Node node = await Node.ConnectAsync(Network.Main, "7xnmrhmkvptbcvpl.onion:8333", connectionParameters);
node.VersionHandshake();
Wasabi: Privacy focused, ZeroLink compliant Bitcoin wallet.
StratisBitcoinFullNode: Bitcoin full node in C# https://stratisplatform.com
Breeze: Breeze Wallet, the first full-block SPV bitcoin wallet
BlockExplorer: A set of projects that can index and query stratis blockchains on the fullnode.
BTCPay Server: A cross platform, self-hosted server compatible with Bitpay API
NTumbleBit: TumbleBit Implementation in .NET Core
BitPoker: Decentralised peer to peer poker, using bitcoin http://www.bitpoker.io
Zen-Wallet: Node and GUI for the Zen Protocol. https://www.zenprotocol.com
Metaco-Trader: Bitcoin Wallet for advanced user based on a NBitcoin.Server
Swarmops: Admin backend for any bitcoin-native or swarm organization http://sandbox.swarmops.com/
NBitcoin Github : https://github.com/NicolasDorier/NBitcoin
NBitcoin Nuget : https://www.nuget.org/packages/NBitcoin/
Intro: http://www.codeproject.com/Articles/768412/NBitcoin-The-most-complete-Bitcoin-port-Part-Crypt
Stealth Payment, and BIP38 : http://www.codeproject.com/Articles/775226/NBitcoin-Cryptography-Part
How to build transaction : http://www.codeproject.com/Articles/835098/NBitcoin-Build-Them-All
Using the NBitcoin Indexer : http://www.codeproject.com/Articles/819567/NBitcoin-Indexer-A-scalable-and-fault-tolerant-blo
How to Scan the blockchain : http://www.codeproject.com/Articles/784519/NBitcoin-How-to-scan-the-Blockchain (You can dismiss the ScanState for that, now I concentrate on the indexer)
Please, use github issues for questions or feedback. For confidential requests or specific demands, contact us on Metaco support.
Visual Studio Community Edition : https://www.visualstudio.com/products/visual-studio-community-vs
Nako: A Bitcoin and Altcoin server api that indexes blockchain transactions and addresses
NBXplorer: A minimalist UTXO tracker for HD Wallets with bitcoin based altcoin support
UnitCurrency: UnitCoin - a hybrid scrypt PoW + PoS based cryptocurrency.
Openchain: Openchain node reference implementation. https://www.openchain.org/
BreezeProject: Breeze Masternode and Wallet with Breeze Privacy Protocol
geewallet: Non-custodial, minimalistic & pragmatist opensource crossplatform lightweight brainwallet to hold the most important cryptoassets in the same application with ease & peace of mind
blockcore: Modular Bitcoin fullnode implementation. https://www.blockcore.net/