Bible Pay

Read 856 times

  • Rob Andrews
  • Administrator

    • 3936


    • 94
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
March 2023 - Red Sea Release
« on: November 12, 2022, 07:51:18 PM »
March 2023 Release - Red Sea



Welcome to TestNet - Red Sea!



Testing commences: Dec 12th, 2022
Testing Ends: February 12th, 2023



In this thread we will be testing:

- HLS264 Video Conversion Mining on Sanctuaries

- Verify emissions for core mining subsidy, core sanc reward, daily governance, and monthly governance

- Generating a deterministic Read Access token, and a BBP Upload token

- Monthly file storage debit process for a storage user

- Uploading a sample video, playing a sample video as a user, accessing or removing your files independently from the BBP network (disaster recovery) or customer exit

- POVS sanc banning





Explain Changes to Entire BiblePay Network:   

- Explain transition from RandomX to Video Mining

- Explain usage instructions from customer and user perspective




Wiki Articles:



Older - Create a Sanc:
https://wiki.biblepay.org/Create_Sanctuary

Older - Installing BMS:
https://wiki.biblepay.org/Install_BMS





Starting Version:    0.17.2.8:

(Please ensure your version is greater than this, in order to sync.  See post #2 for current hash.


Testnet Download Links:


NOT Ready:
     Windows 64-bit:      https://biblepay.org/biblepaydevelop-1.exe
     Linux 64 bits II (QT/biblepayd/biblepay-cli) zip:  https://biblepay.org/bbp-lin-develop-64.zip
     (Inquire first before downloading) MacOS QT: https://biblepay.org/biblepay-harvest-develop.dmg


To self compile:
git pull origin develop

https://github.com/biblepay/biblepay/blob/develop/BuildBiblePayDevelop.txt


TODO during release:
Move Mobile Endpoint for mobile wallet unchained:
From foundation.biblepay.org to         https://unchained.biblepay.org/BMS/MobileAPI







CONFIGURING FOR TESTNET:


Create a biblepaytest.conf file with the following contents:
testnet=1
(optional:  debug=1)

Place the file in ~/.biblepay



Start testnet by typing:
./biblepay-qt -conf=biblepaytest.conf

(Note the blocks and chainstate will sync into the ./biblepay/testnet3 folder.

NOTE: If you only have one machine, you can run in testnet side by side a prod node.

To create a TestNet Sanctuary:

https://wiki.biblepay.org/Create_Sanctuary

__________________________________________________________________________________________________________________________________________________________________________________________



                                                                   OUR BIBLEPAY CORE TESTERS



#1 -

#2 -

#3 - Rob Andrews

#4 -











  • Rob Andrews
  • Administrator

    • 3936


    • 94
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: March 2023 - Red Sea Release
« Reply #1 on: December 02, 2022, 06:52:52 AM »
Test Case #1:

To test the built in Decentralized Storage Database we need to Create a storage key, write a value and read a value.
Step 1 - Creating a Storage Key

From the bbp rpc console type:
generatestoragetoken

BBP Rpc will respond with:
{
  "BBP Public Key": "BES28FUFwZxhfW5wRDTsFaFZUwJjeFtbEq",
  "BBP Priv Key": "Redacted",
  "Access Token": "12qh5GyNpXV341JWVefJiyHUPJ96CbjVoacKvJo4hAWmpdcM89vLS3BXm8Wt9u2kwB5WTKAHvUm7gN5mPAGhYn58uyR8RqGXSVTQdxvUSmniPVNmzE2RYFkts4VhJ97Y"
}


The BBP PrivKey is now designed to be used to store data, files, videos on our network.  The Access Token can be used to recover your data outside of sanctuaries using the instructions in
the Disaster Recovery wiki.


Step 2 - Set a database value using your new storage account:

setdatabasevalue your_bbp_private_key your_table_name your_key_name your_value

BiblePay will respond with either a success or failure.  The value "your_value" will be stored in our decentralized database.

Step 3 - Retrieve a database value using your storage account:

getdatabasevalue your_bbp_private_key your_table_name your_key_name

BiblePay will respond with the value that you set earlier.




  • Rob Andrews
  • Administrator

    • 3936


    • 94
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: March 2023 - Red Sea Release
« Reply #2 on: December 02, 2022, 06:56:57 AM »
Test Case #2:

Store a video on the BiblePay network:

First read this wiki to understand how to curl post a video using your storage key (gained in test #1):
https://wiki.biblepay.org/API

From your linux node curl post a video:
First create a directory on your drive, for example:
mkdir /video
cd /video
Copy a video to this directory, in our case it is called ThePull.mp4.
Now execute the post:

curl -X POST -H "key:my_bbp_private_storage_key" -H "url: myurl.mp4" -F "[email protected]" https://unchained.biblepay.org/api/web/bbpingress
BiblePay responds with:

{"Json":"{\"error\":null,\"URL\":\"https://unchained.biblepay.org/video/BRjwTb9faxA7p3jpbigX9N6cnQh9m8j4R7/myurl.mp4",\"HLSURL\":\"https://unchained.biblepay.org/video/BRjwTb9faxA7p3jpbigX9N6cnQh9m8j4R7/b08b66bfa6602c05710f8de225859bae8262e307ba1642dd8fe45ad7c37e8df9/1.m3u8",\"HLSURL2\":\"https://unchained.biblepay.org/bbp/watchvideo?id=b08b66bfa6602c05710f8de225859bae8262e307ba1642dd8fe45ad7c37e8df9",\"result\":0,\"userid\":null,\"version\":1.4}"}


Now you can navigate to the "HLSURL2" to verify the video is viewable on our network.


« Last Edit: December 02, 2022, 06:59:04 AM by Rob Andrews »


  • Rob Andrews
  • Administrator

    • 3936


    • 94
    • June 05, 2017, 08:09:04 PM
    • Patmos, Island Of
    more
Re: March 2023 - Red Sea Release
« Reply #3 on: December 03, 2022, 03:32:07 PM »
Test case #3

Verify that BiblePay Sanctuary converts an MP4 to HLS (video encoding):

curl -X POST -H "key:my_bbp_private_storage_key" -H "url: myurl.mp4" -F "[email protected]" https://unchained.biblepay.org/api/web/bbpingress
BiblePay responds with:


{"Json":"{\"error\":null,\"URL\":\"https://unchained.biblepay.org/video/BRjwTb9faxA7p3jpbigX9N6cnQh9m8j4R7/myurl.mp4",

\"HLSURL\":\"https://unchained.biblepay.org/video/BRjwTb9faxA7p3jpbigX9N6cnQh9m8j4R7/b08b66bfa6602c05710f8de225859bae8262e307ba1642dd8fe45ad7c37e8df9/1.m3u8",


\"HLSURL2\":\"https://unchained.biblepay.org/bbp/watchvideo?id=b08b66bfa6602c05710f8de225859bae8262e307ba1642dd8fe45ad7c37e8df9",

\"result\":0,\"userid\":null,\"version\":1.4}"

}


Find the HLS URL.
Navigate to it.
If it responds with an m3u8 manifest file, download it and open it.

This file proves that the BBP network converted the video from MP4 to HLS.

To watch the video, click on the HLS2 link from a browser.

« Last Edit: December 03, 2022, 03:33:40 PM by Rob Andrews »