Blockchain Broadcast - The Blockchain Broadcast is a setting stage for a promising future in publishing. By tackling hurdles like scalability, data privacy, and following rules, we're building a more secure and open way to share content. The blend of blockchain with broadcasting holds huge potential – think decentralized publishing, easy access, and clever ways to make money. Authors, publishers, and readers are all in for a direct connection and fresh creativity. Blockchain Broadcast is a pioneer, blending tech and imagination, shaping how we create, share, and enjoy digital content in an exciting new era.
18.08.2023_17.32.06_REC.mp4
GitHub Documentation: Configuration for blockchain-broadcast-backend
and blockchain-broadcast-frontend
Before you begin the configurations for blockchain-broadcast-backend
and blockchain-broadcast-frontend
, ensure you have the following set up:
-
Cardano Node Installation: Follow the step-by-step guide to install the test net Cardano blockchain using the following link:
After installing, ensure that the Cardano node is running.
-
Test Wallet: The setup already includes a test wallet named
payment.addr
. Hence, there's no need to create a new test wallet. However, always be cautious and avoid performing any transactions involving real funds with test wallets.
Project Demo Videos To get a visual walkthrough of our blockchain broadcast application, watch the demo videos:
18.08.2023_17.32.06_REC.mp4
Untitled.video.-.Made.with.Clipchamp.mp4
In the config.js
file, provide your Blockfrost API Key for the blockchain backend.
const blockfrostApiKey = {
0: "ADD YOUR PROJECT ID", // Add your blockfrostApiKey from blockfrost
1: "ADD YOUR PROJECT ID" // You can add multiple keys if required
};
Steps:
- Navigate to your Blockfrost account.
- Search for your project API key.
- Replace
"ADD YOUR PROJECT ID"
with your actual Blockfrost project ID.
Note: Ensure you never expose your API keys publicly. Always utilize environment variables or secret management tools for sensitive data.
For the frontend's server.js
, configure the details for IPFS:
const baseUrlIPFS = `https://milkomeda-testnet.blockfrost.io/api/v0/`;
const projectId = 'ADD YOUR PROJECT ID HERE'; // Replace with your project ID
const filePath = './path_to_your_video.mp4'; // Path to the video you wish to upload to IPFS
To set up and authenticate with the Pinata API for the blockchain frontend, follow the below code:
const pinata = new pinataSDK({
pinataApiKey: 'YOUR_PINATA_API_KEY',
pinataSecretApiKey: 'YOUR_PINATA_SECRET_API_KEY'
});
const res = await pinata.testAuthentication();
console.log(`"Congratulations! You are communicating with the Pinata API"! ${res}`);
Steps:
- Go to your Pinata account.
- Retrieve both your Pinata API Key and Secret API Key.
- Replace
'YOUR_PINATA_API_KEY'
with your actual Pinata API Key. - Replace
'YOUR_PINATA_SECRET_API_KEY'
with your actual Secret API Key.
Security Warning: It's important to remember that the provided examples seem to have hardcoded API keys, which are not advised for production or public repositories. Always substitute sensitive data with placeholders in public documentation, and utilize environment variables or other secure techniques to store such keys in your actual codebase.
After replacing placeholders with your real keys and IDs, you're set to use the configurations for both the backend and frontend of your blockchain broadcast application. Always ensure you securely store confidential information and avoid public exposure.