HiveCuba P2P: ¿Como funciona? [ES-EN]

in Hive Cuba2 months ago (edited)

HiveCubaP2P es un bot de Telegram para el intercambio entre pares P2P, de HIVE o HBD con FIAT u otros valores. Se basa en un mecanismo de custodia en garantía por la cuenta @hivecuba.p2p de confianza y respaldo por la comunidad HIVE Cuba. Tiene cero comisiones para los usuarios que poseen una delegación de suscripción.

HiveCubaP2P is a Telegram bot for P2P peer-to-peer exchange of HIVE or HBD with FIAT or other values. It is based on a guaranteed custody mechanism by the @hivecuba.p2p account, trusted and supported by the HIVE Cuba community. It has zero commissions for users who have a subscription delegation.


Captura de pantalla en
Screenshot in
HiveCuBaP2P_Bot


Tomado del post Tutorial de @manuphotos
Taken from the Tutorial post by @manuphotos
¡Compra Hive y HBD con pesos cubanos ya! - Tutorial HiveCuba P2P


Versión en Español

El origen de HiveCubaP2P_Bot

Días atrás el 12 de Marzo la cuenta de @hivekeychain en X anunciaba la liberación de una Dapp y su integración con su billetera para el manejo de operaciones multifirma. Una mala interpretación nos hizo ver una magnífica oportunidad de que una novedosa implementación de transacciones multifirma estaba surgiendo, en cambio lo que realmente se había manejado es la operatividad de gestión de multifirma para cuentas multifirma, algo un tanto distinto de lo que habíamos interpretado y sobre lo que publicamos en el post Multisig o el P2P nativo en HIVE [ES-EN]. En la víspera de que esta funcionalidad saliera a la luz nos dimos a la tarea de implementar un mecanismo P2P al estilo del bot lnp2pbot en Telegram. Una vez liberada la Dapp https://multisig.hive-keychain.com/ pudimos verificar que su funcionalidad no era la que esperábamos. Creemos firmemente que en algún momento se implemente la verificación de transacciones multifirma sin la necesidad de que la cuenta que origina la transferencia tenga que modificarse en su configuración de firmantes, además del P2P nativo como previmos otros muchos casos de uso saldrían a la luz.

A pesar de todo ya el código del bot con la mayoría de las funciones estaba, y con él un trabajo de empatar un día con otro mientras se probaba y perfeccionaba todo. No dejaríamos perder el trabajo y pensamos en alternativas, en este caso la alternativa de una cuenta de depósito en garantía como entidad de garantía y respaldada por la comunidad.

Somos enemigos de los servicios custodial pero @hivecuba.p2p tiene algo más, y es el respaldo de su comunidad y la reputación de quiénes la gestionan. Es algo que pone en tela de juicio todo el proceso y establece un compromiso al buen funcionamiento del mismo. Pues la comunidad se debe a sus miembros a la vez que se nutre de ellos.

El funcionamiento del bot se basa en comandos pero se irá trabajando en mejorar su usabilidad hasta llegar a la implementación de una Miniaplicación de Telegram TMA[1] en su madurez.

Funcionamiento de HiveCubaP2P_Bot

Básica el bot realiza la gestión de un proceso escrow[2] como un macanismo de gestión de garantía, en este caso la cuenta de #HIVE hivecuba.p2p, que será la que recibirá los depósitos en garantía entre las partes mientras dura el proceso de negociación. Hay tres actores el que compra HIVE/HBD, el que los vende por cierto producto o FIAT y el bot. El tipo de orden depende de quién inicia el proceso pero los actores en sí son inmutables.

Registro

Al iniciar un chat con el bot o ejecutar el comando

/start

se registrará el nombre de usuario de Telegram y el Id de la converzación pero no podrá realizar ninguna otra operación hasta que registre el nombre de usuario de #HIVE lo cual se hace mediante:

/hiveuser juanperes

en este ejemplo juanperes es el usuario de HIVE asociado a la cuenta de telegram que recibirá los fondos cuando se haga un proceso de compra de #HIVE o #HBD. Además se verificará que haya delegado al menos 50 #HP a la cuenta hivecuba como método de suscripción a los servicios del bot. Este valor delegado se irá ajustanto y posteriormente se implementará un fee para aquellos usuarios que no deseen delegar.

Poner una orden de compra o venta

Cuando se habla de comprar y vender nos referimos explicitamente a los token de HIVE y HBD. En un proceso de compra/venta se demandan/ofertan HIVE/HBD y se recibe cierta cantidad de un producto o valor en una denominación definida. Veámoslo en ejemplos:

Compra

El usuario desea comprar 10 HBD por 12 MLC (moneda CDBD que opera en Cuba) usando cómo métodos de pago la pasarela de pagos digitales cubana Enzona, en este caso deberá poner el siguiente comando

/buy 10 HBD 12 MLC Enzona

Venta

El usuario desea vender 5 HIVE por 550 CUP (moneda nacional cubana) usando cómo métodos de pago la pasarela de pagos digitales cubana Transfermóvil, en este caso deberá poner el siguiente comando

/sell 5 HIVE 550 CUP Transfermóvil

Al enviar una orden de forma automática se publicará en el canal de ofertas en Telegram: Ofertas HiveCuba P2P


Captura de pantalla en
Screenshot in
Ofertas HiveCuba P2P

Además el bot le compartirá un enlace que puede usar para cancelar su orden junto con el enlace a la publicación de su orden.

Las órdenes podrán ser canceladas mientras no sean tomadas tanto por el enlace como ejecuntando el comando /cancel NumeroDeOrden por ejemplo para la orden antes puesta sería:

/cancel 8175168280034798251

Procesamiento de una Orden

Para tomar una orden debe visitar el canal público de Telegram: Ofertas HiveCuba P2P y escoger el que sea de su gusto dando clic en la palabra AQUI que acompaña al Id de la orden. El bot le preguntará si está de acuerdo con tomar esa orden y una vez tomada la despublicará del canal de ofertas notificando al usuario que la puso junto con su nombre de usuario de Telegram para que se pongan en contacto.

La parte que envía el HIVE o HBD deberá en un primer paso hacer un depósito de garantía a la cuenta hivecuba.p2p con el monto de la oferta y poniendo un memo obligatorio que se usará para verificar. Al terminar de enviar los fondos de garantía tiene que notificarlo al bot dando clic en el enlace del mensaje que le indica cómo verificar.

Acto seguido el actor que compra el HIVE o HBD es notificado que se ha realizado el depósito en garantía y deberá efectuar el pago según la cantidad, tipo y método de pago acordado en la oferta. Al terminar debe verificar su envío en el enlace del mensaje que le indica cómo verificar.

Finalmente el vendedor de HBD o HIVE al verificar que ha recibido el pago acordado libera mediante el enlace del mensaje que le indica cómo liberar los fondos. Debe tenerse en cuenta que este es el paso más crítico pues una vez liberado los fondos no hay manera de deshacer la transferencia .

Si todo va bien el proceso es completamente automático sin la necesidad de intervención externa. Para el caso de que no se ha enviado el monto acordado, o no se ha puesto el memo, hay algún error o bug del bot, o no hay un acuerdo entre las partes existe la opción de ejecutar una diputa mediante el enlace que se les comparte con la palabra DISPUTA y el grupo de soporte del bot se pondrá en contacto con cada una de las partes y verificará las evidencias de cada uno.

Palabras finales

Estamos en una fase inicial, aunque hemos logrado un sistema funcional en la medida que nuestros usuarios y camaradas nos vayan haciendo sugerencias haremos un proceso de mejora contínua hasta alcanzar el objetivo de una solución robusta y usable.

Los invitamos a utilizarlo y reportar sus ideas, proposiciones de cambio para que logremos un mejor valor agregado para el servicio en función de su comunidad @hivecuba.

Falta por:

  • Optimizar los procesos
  • Mejorar la usabilidad
  • Establecer un mecanismo de reputación
  • Evolucionar a una Miniaplicación de Telegram.
  • Mucho más según los intereses de nuestros miembros de @hivecuba.

Cuando estemos en un estado más maduro liberaremos los códigos y el acceso al repositorio en GitHub para que todo el que quiera pueda colaborar y adaptarlo a su comunidad. Defendemos la política FOOS fervientemente.


English version

Days ago on March 12th the @hivekeychain account on X announced the release of a Dapp and its integration with its wallet for handling multi-signature operations. A misinterpretation made us see a magnificent opportunity that a novel implementation of multi-signature transactions was emerging, instead what had been handled is the operability of multi-signature management for multi-signature accounts, something somewhat different from what we had interpreted and about what we published in the post Multisig or the native P2P in HIVE [EN-ES]. On the eve of this functionality coming to light we took on the task of implementing a P2P mechanism in the style of the lnp2pbot bot on Telegram. Once the Dapp was released https://multisig.hive-keychain.com we were able to verify that its functionality was not what we expected. We firmly believe that at some point multi-signature transaction verification will be implemented without the need for the account that originates the transfer to have to be modified in its signers' configuration, in addition to native P2P as we foresaw many other use cases would come to light.

Despite everything, the code's bot with most of the functions was already there, and with it a job of tying one day with another while everything was being tested and perfected. We would not let the job be lost and we thought about alternatives, in this case, the alternative of an escrow account as a guaranteed entity, and backed by the community.

We are enemies of custodial services but @hivecuba.p2p has something else, and that is the support of its community and the reputation of those who manage it. It is something that calls into question the entire process and establishes a commitment to its proper functioning because the community owes to its members at the same time that it is nourished by them.

The bot's operation is based on commands but work will be done to improve its usability until it reaches the implementation of a Telegram TMA[1] Mini-application in its maturity.

Operation of HiveCubaP2P_Bot

Basic the bot performs the management of an escrow process[2] as a guarantee management mechanism, in this case, the #HIVE hivecuba.p2p, which will be the one that will receive the escrow deposits between the parties while the negotiation process lasts. There are three actors the one who buys HIVE/HBD, the one who sells them for a certain product or FIAT, and the bot. The type of order depends on who initiates the process but the actors themselves are immutable.

Registration

When starting a chat with the bot or executing the command

/start

the Telegram username and the conversion ID will be registered but you will not be able to perform any other operation until you register the #HIVE username which is done by:

/hiveuser juanperes

in this example juanperes is the HIVE user associated with the telegram account that will receive the funds when a #HIVE or #HBD purchase process is made. In addition, it will be verified that you have delegated at least 50 #HP to the hivecuba account as a subscription method to the bot's services. This delegated value will be adjusted and subsequently, a fee will be implemented for those users who do not wish to delegate.

Place a buy or sell order

When we talk about buying and selling we refer explicitly to the HIVE and HBD tokens. In a buying/selling process, HIVE/HBD are demanded/offered and a certain amount of a product or value in a defined denomination is received. Let's see it in examples:

Buy

The user wants to buy 10 HBD for 12 MLC (CDBD currency that operates in Cuba) using how payment methods from the Cuban digital payment gateway Enzona, in this case, he must put in the following command

/buy 10 HBD 12 MLC Enzona

Sell

The user wants to sell 5 HIVE for 550 CUP (Cuban national currency) using how payment methods the Cuban digital payment gateway Transfermóvil, in this case, he must put in the following command

/sell 5 HIVE 550 CUP Transfermóvil

When sending an order it will be automatically published in the channel of offers on Telegram: Offers HiveCuba P2P


Captura de pantalla en
Screenshot in
Ofertas HiveCuba P2P

In addition, the bot will share a link that you can use to cancel your order along with the link to the publication of your order.

The orders can be canceled as long as they are not taken both by the link and by executing the command /cancel OrderNumber for example for the order placed before it would be:

/cancel 8175168280034798251

Processing of an Order

To take an order you need to visit the public Telegram channel: HiveCuba P2P Offers and choose the one that is to your liking by clicking on the word AQUI that accompanies the order Id. The bot will ask you if you agree to take that order and once taken it will unpublish it from the offers channel notifying the user who put it together with his Telegram username so that they can get in touch.

The party sending the HIVE or HBD must, as a first step, make a security deposit to the hivecuba.p2p with the amount of the offer and put the mandatory memo that will be used to verify. When you have finished sending the guarantee funds, you have to notify the bot by clicking on the link in the message that tells you how to verify.

Then the actor who buys the HIVE or HBD is notified that the security deposit has been made and must make the payment according to the amount, type, and method of payment agreed in the offer. At the end, you must verify your submission in the link of the message that tells you how to verify.

Finally, the HBD or HIVE seller, when verifying that he has received the agreed payment, releases it using the link in the message that tells him how to release the funds. It should be borne in mind that this is the most critical step because once the funds are released there is no way to undo the transfer.

If everything goes well the process is completely automatic without the need for external intervention. If the agreed amount has not been sent, or the memo has not been posted, there is some error or bug of the bot, or there is no agreement between the parties, there is the option of executing a dispute through the link that is shared with the word DISPUTE and the bot support group will contact each of the parties and verify the evidence of each one.

Final words

We are in an initial phase, and although we have achieved a functional system to the extent that our users and comrades are making suggestions, we will make a continuous improvement process until we reach the goal of a robust and usable solution.

We invite you to use it and report your ideas, and proposals for change so that we achieve a better added value for the service based on your @hivecuba community.

Missing by:

  • Optimize the processes
  • Improve usability
  • Establish a reputation mechanism
  • Evolve to a Telegram Mini-Application.
  • Much more according to the interests of our @hivecuba members.

When we are in a more mature state we will release the codes and access to the repository on GitHub so that everyone who wants to can collaborate and adapt it to their community. We defend the FOOS policy fervently.



  1. https://docs.telegram-mini-apps.com/

  2. https://www.segurosyfinanzashoy.com/escrow-que-es-definicion-y-concepto/

Sort:  

Me parece una interesante propuesta para la comunidad de HIVE en Cuba, acortando barreras 💪💪💪

Uff parece un poco complejo pero creo que es una buena iniciativa, Saludos ✌️💯

Si lo pruebas, verás que no es tan complejo. Tener una experiencia similar como en lnp2pbot ayuda pero no es necesaria.

Gracias tal ves pruebe con un retiro!👍

Q bueno. Una limitación menos para los cubanos. Esta comunidad me llena de orgullo.

Buscar soluciones es la cuestión.

Ya llevo dos operaciones con éxito 🙌
Felicidades por el trabajo, era muy necesario una alternativa como esta en la comunidad

Gracias por estar entre los primeros probadores. Las sugerencias de los usuarios es muy bienvenida. Seguimos mejorando!!!

Esto se pone bueno.

Excelente mi hermano, el hosting el Raspberry Pi 3 de la sala está asegurado. Happy Hacking

Con el apoyo de la comunidad ya tenemos un hosting rápido!!! 🤩

Congratulations @ertytux! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 4250 upvotes.
Your next target is to reach 4500 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Happy Birthday to the Hive Blockchain

Es una gran opción para los cubanos, que bueno que sigan pensando en ideas como esta 🙌🏻

Es el poder de la comunidad. 👍

Me encanta la idea. Estoy un poco al margen de las cosas pero veo qué hay muchas novedades en Hive dentro de poco tendré que pasar un nuevo curso y empezará estudiar nuevamente la cantidad de innovaciones que se han venido sucediendo. En hora buena a #hivecuba

HIVE y su ecosistema es joven. Hay mucho por crear y hacer para darle utilidad.