Activeledger SDK for .Net
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ActiveLedgerLib
packages
ActiveLedgerLib.sln
README.md

README.md

https://github.com/activeledger/SDK-Ruby/edit/master/README.md

Activeledger .NET SDK

Add the Reference of the ActiveLedger library in your Visual Studio project

Initialise the SDK

ActiveLedgerLib.SDKPreferences.setSettings("protocol", "URL", "port");

Generate KeyPair

AsymmetricCipherKeyPair keypair = ActiveLedgerLib.GenerateKeyPair.GetKeyPair(KeyType);

Creating Onboard transaction

Generate Json Object for onBoaring keys

JObject json = ActiveLedgerLib.GenerateTxJson.GetTxJsonForOnboardingKeys(PathOfPublicKeyFile, AsymmetricKeypair,TypeofKey);

Send a transaction

Submit a transaction to Activeledger

var response = ActiveLedgerLib.MakeRequest.makeRequestAsync(SDKPrefernece, jsonObjectIntheFormOfString);

Key Management

Writing KeyPair in the file in PEM Format

ActiveLedgerLib.Helper.WritekeyPairInFile(PathOfFile, AsymmetricCipherKeyPair);

Writing Only the Public Key in the file in PEM Format

ActiveLedgerLib.Helper.WritePublicKeyInFile(PathOfFile, AsymmetricCipherKeyPair);

Reading Only the Pem Format key pair from the user file and return the Asymmetric Keypair

AsymmetricCipherKeyPair keypair = ActiveLedgerLib.Helper.ReadAsymmetricKeyParameter(PathOfFile);