ES2808412A1 - Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding) - Google Patents

Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding) Download PDF

Info

Publication number
ES2808412A1
ES2808412A1 ES202030783A ES202030783A ES2808412A1 ES 2808412 A1 ES2808412 A1 ES 2808412A1 ES 202030783 A ES202030783 A ES 202030783A ES 202030783 A ES202030783 A ES 202030783A ES 2808412 A1 ES2808412 A1 ES 2808412A1
Authority
ES
Spain
Prior art keywords
exchange
document
account
signature
blockchain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
ES202030783A
Other languages
Spanish (es)
Inventor
Abril Rubén Rodríguez
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to ES202030783A priority Critical patent/ES2808412A1/en
Publication of ES2808412A1 publication Critical patent/ES2808412A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services; Handling legal documents

Abstract

It is a system for issuing, endorsing, accepting and submitting electronic exchange documents for payment, characterized in that each of these operations is performed by smart contracts/modules located in the account that the competent tax authority (in the case of bills of exchange) or the corresponding bank (in the case of checks) have open on the blockchain. The system incorporates a method for creating an electronic stamp, characterized in that the tax authority signs the serial number and class of the exchange document, and then, subsequently, a module located in the account verifies the validity of said signature, and that the serial number has not previously been used to issue another exchange document. (Machine-translation by Google Translate, not legally binding)

Description

DESCRIPCIÓNDESCRIPTION

PROCEDIMIENTO DE CREACIÓN Y TRANSMISIÓN DE DOCUMENTOS CAMBIARIOS UTILIZANDO TECNOLOGÍA DLTPROCEDURE FOR THE CREATION AND TRANSMISSION OF EXCHANGE DOCUMENTS USING DLT TECHNOLOGY

SECTOR DE LA TÉCNICATECHNICAL SECTOR

La invención se encuadra dentro del ámbito de las bases de datos distribuidas (Distríbuted Ledger Technology, DLT), y particularmente, en el ámbito de la tecnología de la cadena de bloques (blockchain). The invention falls within the scope of distributed databases ( Distríbuted Ledger Technology, DLT), and particularly in the field of blockchain technology.

ANTECEDENTES DE LA INVENCIÓNBACKGROUND OF THE INVENTION

Los documentos cambiarios son documentos físicos, elaborados en papel, que incorporan derechos de naturaleza crediticia, y son transmisibles con las condiciones señaladas por la ley. Se agrupan en tres grandes tipos: Letras de cambio, cheques y pagarés. En la actualidad, de conformidad con la legislación española, para que un documento cambiario sea válido debe de redactarse en un tipo de papel físico, denominado papel timbrado, expedido por la Fábrica Nacional de Moneda y Timbre. En la presente solicitud de patente se describe un nuevo procedimiento para crear papel timbrado electrónico, y para expedir documentos cambiarios utilizando exclusivamente este tipo de papel timbrado. Estos documentos serían almacenados en una base de datos distribuida, gobernada por el protocolo de Libra.Exchange documents are physical documents, made on paper, that incorporate rights of a credit nature, and are transferable under the conditions indicated by law. They are grouped into three main types: bills of exchange, checks and promissory notes. Currently, in accordance with Spanish legislation, for an exchange document to be valid it must be drawn up on a type of physical paper, called stamped paper, issued by the National Currency and Stamp Factory. In the present patent application a new procedure is described for creating electronic stamping paper, and for issuing exchange documents using exclusively this type of stamping paper. These documents would be stored in a distributed database, governed by the Libra protocol.

En las últimas décadas del siglo XX, la informática y las bases de datos electrónicas han ido afectando en una medida cada vez mayor a las transferencias de dinero y derechos patrimoniales. En el ámbito jurídico, desde los años 80 se ha venido produciendo un proceso de “desmaterialización” de los valores negociables (acciones, obligaciones...), en cuya virtud dichos valores dejaron de estar representados por documentos en papel, y se incorporaron progresivamente a bases de datos informáticas, facilitando con ello su transmisión. En la actualidad, la creación y transmisión de valores ya no tiene lugar a través de la redacción y firma de documentos escritos sino a través de la práctica de asientos en una base de datos centralizada. In the last decades of the 20th century, information technology and electronic databases have increasingly affected money transfers and property rights. In the legal field, since the 1980s there has been a process of "dematerialization" of negotiable securities (shares, bonds ...), by virtue of which said securities were no longer represented by paper documents, and were progressively incorporated to computer databases, thereby facilitating their transmission. At present, the creation and transmission of values no longer takes place through the drafting and signing of written documents but through the practice of entries in a centralized database.

Un hito importante en el desplazamiento del tráfico de derechos patrimoniales hacia el ciberespacio tuvo lugar en el año 2008, con la aparición de Bitcoin y de las monedas coloreadas (en inglés colored coins). Éstas últimas pueden ser definidas como un conjunto de satoshis identificados unívoca e individualmente por una serie metadatos, y que, como consecuencia de ello, son aptos para representar derechos de contenido patrimonial. Con la aparición de Bitcoin y de la tecnología blockchain, se abrió la posibilidad de practicar anotaciones en cuenta representativas de valores negociables no sólo en registros centralizados, sino también en bases de datos electrónicas descentralizadas.An important milestone in the movement of traffic economic rights to cyberspace took place in 2008, with the appearance of Bitcoin and colored coins (in English colored coins). The latter can be defined as a set of satoshis uniquely and individually identified by a series of metadata, and which, as a consequence, are apt to represent patrimonial content rights. With the emergence of Bitcoin and blockchain technology, the possibility of practicing representative book entries of negotiable securities was opened not only in centralized registries, but also in decentralized electronic databases.

En el año 2014 apareció Ethereum, y con él, una segunda generación de blockchains dotadas de máquinas virtuales (ordenadores simulados) capaces de ejecutar contratos inteligentes. Fue dentro de Ethereum donde adquirió plena funcionalidad la posibilidad de documentar valores negociables a través de tokens, expresión inglesa que define a aquellas variables o estructuras de datos cuya creación, transmisión y amortización es controlada por un bloque de código informático, residente en la propia blockchain, y denominado smart contract (contrato inteligente). Los tokens pueden ser de dos tipos: fungibles y no fungibles. Los tokens no fungibles son aquellos identificados por características únicas, que los hacen plenamente distinguibles de los demás. Los tokens fungibles, por el contrario, son aquellos que se identifican por su género, es decir, por características colectivas compartidas con otros de su misma clase. Los tokens fungibles están comenzando a ser utilizados para documentar electrónicamente valores mobiliarios, y dentro de Ethereum están teniendo lugar iniciativas para homogeneizarlos por medio de estándares (como el célebre ERC20) que describen cuáles son las funciones esenciales de las que debe disponer como mínimo el contrato inteligente que emite un token, y cuáles son las características básicas que han de tener dichas funciones.In 2014 Ethereum appeared, and with it, a second generation of blockchains equipped with virtual machines (simulated computers) capable of executing smart contracts. It was within Ethereum where the possibility of documenting negotiable values through tokens acquired full functionality, an English expression that defines those variables or data structures whose creation, transmission and amortization is controlled by a block of computer code, resident in the blockchain itself , and called smart contract (smart contract). Tokens can be of two types: fungible and non-fungible. Non-fungible tokens are those identified by unique characteristics, which make them fully distinguishable from others. The fungible tokens , on the contrary, are those that are identified by their gender, that is, by collective characteristics shared with others of the same class. Fungible tokens are beginning to be used to electronically document transferable securities, and within Ethereum initiatives are taking place to homogenize them through standards (such as the famous ERC20) that describe the essential functions that the contract must have as a minimum. smart that emits a token, and what are the basic characteristics that these functions must have.

Dentro del protocolo de Libra, los derechos patrimoniales se representan mediante recursos, que juegan un papel análogo al de los tokens dentro del protocolo de Ethereum. Las estructuras algorítmicas que controlan la creación, transmisión y amortización de estos derechos reciben el nombre de módulos, y son similares a los contratos inteligentes (smart contracts) de otros protocolos distribuidos.Within the Libra protocol, economic rights are represented by resources , which play a role analogous to tokens within the Ethereum protocol. Algorithmic structures that control the creation, transmission and amortization of these rights are called modules, and are similar to contracts intelligent (smart contracts) other distributed protocols.

Al igual que sucede con Ethereum, dentro de Libra la información se estructura en cuentas, que almacenan toda la información relativa a los derechos una determinada persona, y transacciones, por medio de las cuales se producen alteraciones del estado de máquina de la cadena y transferencias de derechos de un individuo a otro:As with Ethereum, within Libra the information is structured in accounts, which store all the information related to the rights of a certain person, and transactions, through which alterations of the machine state of the chain and transfers of rights from one individual to another take place:

a) Cuentasa) Accounts

Las cuentas se identifican por su dirección, derivada de una clave pública. Cada vez que un usuario pretende crear una nueva cuenta, debe previamente generar, mediante un algoritmo de criptografía asimétrica, un par de claves, privada y pública. La dirección se calcula haciendo un hash a la clave pública. La cuenta es creada cuando se envía por vez primera una transacción a dicha dirección.Accounts are identified by their address, derived from a public key. Every time a user intends to create a new account, he must first generate, using an asymmetric cryptography algorithm, a pair of keys, private and public. The address is calculated by hashing the public key. The account is created when a transaction is sent to that address for the first time.

Como ya se expuso con anterioridad, la información almacenada en cada cuenta se ordena en módulos y recursos. Los módulos (modules) son el equivalente en Libra de los contratos inteligentes (smart contracts) de Ethereum: en uno y otro caso se trata de piezas de código que controlan los cambios del estado de máquina individual de cada cuenta, y por lo tanto, regulan la modificación de los derechos y deberes individuales registrados en ésta. Los recursos (resources), por su parte, son variables utilizadas para representar derechos dentro de la base de datos: son el equivalente de las criptomonedas y de los tokens existentes en otras blockchains, y por ello, son plenamente aptos para documentar electrónicamente derechos incorporales de naturaleza fungible, como los títulos-valores o valores negociables. La emisión y la amortización de recursos se realizan por los módulos de cada cuenta.As previously explained, the information stored in each account is arranged in modules and resources. The modules ( modules) are the equivalent in Libra of the smart contracts of Ethereum: in both cases they are pieces of code that control the changes of the individual machine state of each account, and therefore, regulate the modification of individual rights and duties registered in it. Resources (resources), meanwhile, are variables used to represent rights within the database: they are the equivalent of criptomonedas and existing tokens in other blockchains, and therefore are fully eligible to electronically document incorporeal rights of a fungible nature, such as securities or negotiable securities. The issuance and amortization of resources are carried out by the modules of each account.

Del mismo modo que hay diversas clases de tokens y de criptomonedas, dentro de Libra también pueden definirse diferentes tipos de recursos. La sintaxis de cada uno de estos últimos es la siguiente:In the same way that there are different classes of tokens and cryptocurrencies, different types of resources can also be defined within Libra. The syntax of each of the latter is as follows:

direccion_cuenta.contrato_inteligente.recursoaccount_address.intelligent_contract.resource

El tipo de recurso se identifica por tres variables, separadas entre sí por puntos. La primera corresponde a la dirección de la cuenta competente para emitir o amortizar el recurso. La segunda, al contrato inteligente encargado de realizar dichas operaciones. Y por último, la tercera es el nombre del recurso en concreto. The type of resource is identified by three variables, separated from each other by points. The first corresponds to the address of the competent account to issue or amortize the resource. The second, to the smart contract in charge of carrying out these operations. And finally, the third is the name of the specific resource.

Por ejemplo, si quisiéramos crear un tipo de recurso (en este caso, un título-valor) llamado bono_rojo, con cargo a un contrato inteligente denominado emisor, situado en la cuenta con dirección 0x45, su sintaxis sería la siguiente:For example, if we wanted to create a type of resource (in this case, a security) called bono_rojo, charged to a smart contract called issuer, located in the account with address 0x45, its syntax would be the following:

0x45.emisor.bono_rojo0x45.emitter.red_bond

Una vez que el recurso ha sido emitido, puede ser transmitido y almacenado a través de todas las cuentas de la blockchain. Dentro de cada una de ellas, el recurso tiene la siguiente sintaxis:Once the resource has been issued, it can be transmitted and stored through all the accounts on the blockchain. Within each of them, the resource has the following syntax:

direccion_cuenta/resources/tipo_de_recursoaccount_address / resources / resource_type

A modo de ejemplo, un título valor de nombre bono_rojo, emitido por el contrato inteligente de la cuenta 0x45 de nombre emisor, y que está en posesión de la cuenta 0x25 se expresa mediante la siguiente cadena:As an example, a security of name red_bond, issued by the smart contract of account 0x45 of issuer name, and that is in possession of account 0x25 is expressed by the following string:

0x25/resources/0x45.emisor.bono_rojo0x25 / resources / 0x45.emitter.red_bond

Un principio esencial de la blockchain de Libra es que los recursos sólo pueden ser amortizados por la misma cuenta que los ha emitido. Fuera de dicha cuenta se impone una suerte de principio de conservación de los recursos, en cuya virtud los recursos pueden ser transmitidos, pero nunca creados (emitidos) o destruidos (amortizados).An essential principle of the Libra blockchain is that resources can only be redeemed by the same account that issued them. Outside of this account, a kind of principle of resource conservation is imposed, by virtue of which resources can be transmitted, but never created (issued) or destroyed (amortized).

b) Transaccionesb) Transactions

Junto con las cuentas (y sus recursos y módulos asociados), las transacciones ocupan un papel prominente en el protocolo de Libra. Son el único mecanismo existente para modificar el estado de máquina de la blockchain, y por lo tanto, para modificar los derechos de contenido patrimonial incorporados a la misma. Cabe señalar que a diferencia de lo que sucede en los protocolos de Bitcoin y Ethereum, en Libra el estado de máquina de la cadena no se actualiza bloque a bloque, sino transacción por transacción. Las transacciones se configuran como mensajes enviados de una cuenta a otra en los que deben de constar, entre otros, los siguientes campos:Along with accounts (and their associated modules and resources), transactions occupy a prominent role in the Libra protocol. They are the only existing mechanism to modify the machine state of the blockchain, and therefore, to modify the rights of patrimonial content incorporated into it. It should be noted that unlike what happens in the Bitcoin and Ethereum protocols, in Libra the machine state of the chain is not updated block by block, but transaction by transaction. Transactions are configured as messages sent from one account to another, which must include, among others, the following fields:

-Dirección del remitente y del destinatario. -Address of sender and recipient.

-Clave pública correspondiente a la clave privada del remitente.-Public key corresponding to the sender's private key.

-Programa: Código informático que debe ser ejecutado por la máquina virtual, acompañado de sus parámetros de entrada y, opcionalmente, del código de nuevos módulos (contratos inteligentes) destinados a ser publicados.-Program: Computer code that must be executed by the virtual machine, accompanied by its input parameters and, optionally, the code of new modules (smart contracts) destined to be published.

Los programas informáticos ejecutados con cada transacción se escriben en un lenguaje específico denominado Move IR, y en ellos pueden incluirse funciones para retirar fondos de una determinada cuenta (p.e. procedimiento withdraw_from_sender) y asignarlos a la cuenta destinataria (p.e. procedimiento deposit). Las transacciones pueden ser utilizadas para transferir fondos de una cuenta a otra, pero también para otros menesteres.The computer programs executed with each transaction are written in a specific language called Move IR, and they can include functions to withdraw funds from a specific account (eg withdraw_from_sender procedure) and assign them to the recipient account (eg deposit procedure). Transactions can be used to transfer funds from one account to another, but also for other purposes.

Una vez que la transacción se ejecuta, en la blockchain se publican los eventos relacionados con la ejecución y resultado de la ejecución, entre ellos, un booleano que describe si dicha transacción ha sido exitosa o no.Once the transaction is executed, the events related to the execution and the result of the execution are published on the blockchain, including a Boolean that describes whether the transaction has been successful or not.

.EXPLICACIÓN DE LA INVENCIÓN . EXPLANATION OF THE INVENTION

La patente que se solicita queda englobada dentro de la sección G06Q 50/18 (Servicios legales; Tratamiento de documentos jurídicos - Legal Services; Handling legal documents) dentro de la Cooperative Patent Classification.The patent being requested is included in section G06Q 50/18 ( Legal services; Treatment of legal documents - Legal Services; Handling legal documents) within the Cooperative Patent Classification .

La invención consiste en un sistema para crear papel timbrado electrónico, y para librar, endosar, aceptar y cancelar letras de cambio, cheques, pagarés y cualquier otro tipo de documentos cambiarios, de un modo electrónico y utilizando para ello como soporte una blockchain gobernada por el protocolo de Libra.The invention consists of a system to create electronic stamp paper, and to issue, endorse, accept and cancel bills of exchange, checks, promissory notes and any other type of exchange documents, in an electronic way and using a blockchain governed by the Libra protocol.

En el presente sistema, cada documento cambiario es representado por un recurso (concepto que, como hemos visto, dentro de Libra equivale a los tokens de Ethereum), que ha de ajustarse a la siguiente estructura:In the present system, each exchange document is represented by a resource (a concept that, as we have seen, within Libra is equivalent to Ethereum tokens ), which must conform to the following structure:

{{

sección identificativa:identifying section:

sección dispositiva:operative section:

sección de enlace: link section:

sección de encriptación:encryption section:

}}

La sección identificativa contiene todos los extremos que identifican al documento, como su clase, su número de serie y el timbre electrónico, que es la firma de dichos datos por parte de la autoridad fiscal competente (en España, la Fábrica Nacional de Moneda y Timbre). La sección dispositiva alberga todas las circunstancias relativas al acreedor, al deudor, a la cantidad debida y a la fecha del vencimiento, si la hubiere, así como los certificados y las firmas de los intervinientes. Los campos de esta parte del documento se envían encriptados a la blockchain utilizando el sistema AES (Advanced Encryption Standard). La sección de enlace contiene referencias (consistentes en funciones hash) a las transmisiones posteriores o anteriores del documento cambiario. Por último, la sección de encriptación contiene la clave simétrica con la que se ha encriptado la sección dispositiva, encriptada a su vez con las claves públicas de los certificados de las partes.The identification section contains all the points that identify the document, such as its class, its serial number and the electronic stamp, which is the signature of said data by the competent tax authority (in Spain, the National Mint and Stamp Factory ). The operative section contains all the circumstances relating to the creditor, the debtor, the amount owed and the expiration date, if any, as well as the certificates and signatures of the parties involved. The fields in this part of the document are sent encrypted to the blockchain using the AES ( Advanced Encryption Standard) system. The link section contains references (consisting of hash functions) to the previous or subsequent transmissions of the currency document. Finally, the encryption section contains the symmetric key with which the operative section has been encrypted, in turn encrypted with the public keys of the parties' certificates.

Por el modo de designación del titular, los títulos electrónicos pueden ser al portador, nominativos y a la orden:By the mode of designation of the holder, electronic titles can be bearer, nominative and to order:

a) Títulos al portadora) Bearer securities

El titular es identificado únicamente por su dirección electrónica, que en Libra -como ya habíamos señalado con anterioridad- equivale al hash de una clave pública. Los pares clave pública/clave privada se almacenan en un archivo denominado monedero o, en lengua inglesa, wallet.The holder is identified only by his email address, which in Libra - as we have already indicated previously - is equivalent to the hash of a public key. The public key / private key pairs are stored in a file called a wallet or, in English, a wallet .

Aquella persona que tiene en su poder la clave privada vinculada al título es considerado como poseedor, portador y titular del mismo. La transmisión del títulovalor puede realizarse entregando físicamente la clave privada a otra persona, cambiando dicha clave privada (una posibilidad admitida por el protocolo de Libra) o transfiriendo el título electrónicamente a otra dirección mediante una transacción.The person who has in his possession the private key linked to the title is considered to be the owner, bearer and owner of the title. The transmission of the security can be done by physically handing over the private key to another person, changing said private key (a possibility supported by the Libra protocol) or transferring the security electronically to another address through a transaction.

Los títulos al portador electrónicos pueden utilizarse para incorporar múltiples derechos de contenido patrimonial. En el ámbito de los títulos al portador documentados por escrito, el jurista español Rodrigo Uría establecía una clasificación que, sin duda alguna es plenamente aplicable a los títulos electrónicos:Electronic bearer securities can be used to incorporate multiple equity content rights. In the field of bearer titles documented in writing, the Spanish jurist Rodrigo Uría established a classification that, without a doubt, is fully applicable to electronic titles:

-Títulos de pago (cheques, billetes de Banco respaldados por un patrón metálico, obligaciones emitidas por sociedades anónimas, etc.), que convierten a su titular en el acreedor de una obligación dineraria.-Payment certificates (checks, banknotes backed by a metallic standard, obligations issued by corporations, etc.), which make their holder the creditor of a monetary obligation.

-Títulos de participación social (acciones de sociedades anónimas), que conceden a su titular derechos políticos o económicos en el ámbito de una sociedad.-Social participation certificates (shares of public limited companies), which grant their holder political or economic rights within the scope of a company.

-Títulos de tradición (p.e. resguardo de depósitos), que facultan para exigir la entrega de algún objeto o mercadería.-Tradition titles (eg deposit receipt), which empower to demand the delivery of any object or merchandise.

Todos estos supuestos son susceptibles de ser documentados electrónicamente.All these assumptions are capable of being electronically documented.

b) Títulos a la ordenb) Titles to order

El titular es identificado con su nombre, apellidos y documento nacional de identidad. Dicha identificación se realiza mediante un certificado electrónico expedido por la Fábrica Nacional de Moneda y Timbre, que vincula la identidad de la persona física (o en su caso la jurídica) a una clave pública. El certificado electrónico (que incluye dentro suya a la clave pública) y la clave privada se almacenan en un tipo de archivo específico denominado PKCS12 (en Windows, a estos archivos les corresponde la extensión .pfx).The holder is identified with his name, surname and national identity document. Said identification is carried out by means of an electronic certificate issued by the National Currency and Stamp Factory, which links the identity of the natural person (or, where appropriate, the legal person) to a public key. The electronic certificate (which includes the public key) and the private key are stored in a specific file type called PKCS12 (in Windows, these files have the extension .pfx).

La característica esencial de los títulos a la orden es que su transmisión se realiza mediante un negocio jurídico específico denominado endoso electrónico. El título a la orden por antonomasia es la letra de cambio electrónica.The essential characteristic of the titles to the order is that their transmission is carried out through a specific legal business called electronic endorsement. The title to the order par excellence is the electronic bill of exchange.

c) Títulos nominativosc) Registered titles

La identificación de su titular reúne los mismos requisitos que la de los títulos a la orden (es decir, el titular se debe identificar mediante un certificado electrónico). Su particularidad reside en que el módulo que emite el título-valor debe guardar un registro en el que conste cada título individualmente emitido, representado por un recurso. La transmisión de cada uno de ellos se realiza mediante la modificación de su correspondiente recurso. Los títulos nominativos pueden utilizarse para documentar los más heterogéneos derechos patrimoniales, desde pagarés a acciones de sociedades anónimas.The identification of their holder meets the same requirements as that of titles to order (that is, the holder must be identified by means of an electronic certificate). Its particularity lies in the fact that the module that issues the security must keep a record in which each individually issued security is recorded, represented by a resource. The transmission of each one of them is carried out by modifying its corresponding resource. Registered titles can be used to document the most heterogeneous economic rights, from promissory notes to shares of Anonymous Societies.

3.2- Letras de cambio3.2- Bills of exchange

Una letra de cambio es un título-valor que contiene una orden abstracta e incondicional de pago a un acreedor, llamado tenedor, por parte de un deudor, denominado librado, que éste debe cumplir y ejecutar en un tiempo determinado. Para que este título-valor ostente la condición de letra de cambio, ha de reunir además una serie de requisitos formales exigidos por la legislación cambiaria.A bill of exchange is a security that contains an abstract and unconditional order for payment to a creditor, called a holder, by a debtor, called a drawee, which the debtor must comply with and execute within a specified time. For this security to have the status of a bill of exchange, it must also meet a series of formal requirements required by exchange legislation.

En este apartado describiremos un nuevo recurso, el de letra de cambio electrónica. Analizaremos su tipología, su estructura y sus mecanismos de emisión (libramiento) y transmisión (endoso).In this section we will describe a new resource, the electronic bill of exchange. We will analyze its typology, its structure and its mechanisms of issuance (bypass) and transmission (endorsement).

a) Tipología de la letra de cambioa) Typology of the bill of exchange

En el modelo objeto de la presente solicitud de patente, cada letra de cambio es configurada como un recurso de tipo Letra emitido por el módulo (contrato inteligente) denominado Emisor, situado en la cuenta que la autoridad estatal encargada de expedir certificados digitales de personas físicas tiene dentro de una blockchain privada gobernada por el protocolo Libra Core. Para que el recurso reúna la condición de letra de cambio electrónica, ha de contener la siguiente estructura de datos:In the model object of this patent application, each bill of exchange is configured as a Letter-type resource issued by the module (smart contract) called Issuer, located in the account that the state authority in charge of issuing digital certificates of natural persons has within a private blockchain governed by the Libra Core protocol. For the resource to meet the status of an electronic bill of exchange, it must contain the following data structure:

1: module Emisor{1: Emitter module {

2: resource Letra {2: resource Letter {

3: numero_serie: char[16], // Número de serie3: serial_number: char [16], // Serial number

4: clase: int[4], // Clase de la letra4: class: int [4], // Letter class

5: tributo: float[16], // Tributo a pagar5: tribute: float [16], // Tribute to pay

6: timbre: char[736], // Código expedido por la FNMT (padding nulo de 2 bytes)6: stamp: char [736], // Code issued by the FNMT (null padding of 2 bytes)

7: lugar_libramiento: char[48], // Lugar del libramiento7: liberation_place: char [48], // Place of liberation

8: fecha_libramiento: char[16], // Fecha del libramiento8: release_date: char [16], // Release date

9: moneda: char[16] , // Moneda9: currency: char [16], // Currency

10: importe_letra: char[48], // Importe a pagar (en letras) 11: importe_numero: float[32], // Importe a pagar (en número) 12: certificado_librador: char[736], // Certificado digital del librador (padding nulo de 2 bytes)10: amount_letter: char [48], // Amount to pay (in letters) 11: amount_number: float [32], // Amount to pay (in number) 12: issuer_certificate: char [736], // Digital certificate of the drawer (2-byte null padding)

13: domicilio_librador: char[96], // Domicilio del librador13: drawer_address: char [96], // Drawer address

14: certificado_tenedor: char[736], // Certificado digital del tenedor (acreedor, padding nulo de 2 bytes)14: holder_certificate: char [736], // Digital certificate of holder (creditor, 2-byte null padding)

domicilio_tenedor: char[96], // Domicilio del tenedorholder_address: char [96], // Holder's domicile

15: IBAN_tenedor: char[48], // IBAN del tenedor (padding nulo de 14 bytes)15: IBAN_fork: char [48], // IBAN of fork (14-byte null padding)

16: certificado_librado: char[736] // Certificado digital del librado (deudor, padding nulo de 2 bytes)16: certificate_librado: char [736] // Digital certificate of the drawee (debtor, null padding of 2 bytes)

17: domicilio_librado: char[96], // Domicilio del librado17: registered_address: char [96], // Address of the drawee

18: ID_librado: char[96], // Nombre común (common name) del librado18: Librado_ID: char [96], // Common name (common name) of the drawee

19: fecha_vencimiento: char[16], // Fecha del vencimiento19: expiration_date: char [16], // expiration date

20: firma_librador: char[256], // Firma del librador20: signer_signature: char [256], // Signature of the drawer

21: firma_tenedor: char[256], // Firma del tenedor21: fork_signature: char [256], // Fork's signature

22: firma_librado: char[256], // Firma del librado (sólo si ha sido aceptada)22: signature_librado: char [256], // Signature of the drawee (only if it has been accepted)

23: endoso: bool, // ¿Ha sido la letra endosada? 24: direccion_endoso: address, // Dirección siguiente en la cadena de endosos23: endorsement: bool, // Has the letter been endorsed? 24: endorsement_address: address, // Next address in endorsement chain

(nulo, si se trata del último endoso)(void, if it is the last endorsement)

25: aceptacion: bool, // ¿Ha sido la letra aceptada? 26: clave_librador: char[256], // Clave simétrica encriptada con la clave pública del librador25: acceptance: bool, // Has the letter been accepted? 26: release_key: char [256], // Symmetric key encrypted with the public key of the drawer

27: clave_tomador: char[256], // Clave simétrica encriptada con la clave pública del tomador27: taker_key: char [256], // Symmetric key encrypted with the taker's public key

28: clave_autoridad: char[256] // Clave simétrica encriptada con la clave pública correspondiente al certificado raíz de la FNMT28: authority_key: char [256] // Symmetric key encrypted with the public key corresponding to the root certificate of the FNMT

////

////

40: }40:}

41: //... 41: // ...

42: }42:}

En las líneas del 2 al 28 se crea una suerte de plantilla a la que se han de ajustar todas las letras de cambio, y que tendrá que ser rellenada cada vez que se emita una de ellas. Los parámetros de líneas 3 a 6 (ambas incluidas) conforman la sección identificativa, y como su propio nombre indica se utilizan para identificar a la letra de cambio. Los parámetros de las líneas 7 a 19 reciben el nombre de sección dispositiva, y contienen toda la información relativa al negocio jurídico cambiario. Todos ellos serán encriptados utilizando una clave simétrica generada por el ordenador del librado. Albergan en su interior la siguiente información:Lines 2 to 28 create a kind of template to which all bills of exchange must be adjusted, and which will have to be filled in each time one of them is issued. The parameters of lines 3 to 6 (both included) make up the identifying section, and as their name indicates they are used to identify the bill of exchange. The parameters of lines 7 to 19 are called the operative section, and contain all the information related to the legal exchange business. All of them will be encrypted using a symmetric key generated by the drawee's computer. They contain the following information:

-Lugar de libramiento, expresado en una cadena de 15 caracteres (char[15]).-Place of bypass, expressed in a string of 15 characters (char [15]).

-Fecha de libramiento, codificada en formato YYYYMMDD (en castellano, AAMMDD, año, mes y día), y expresada en una cadena de 8 caracteres (char[8]).-Date of clearance, encoded in YYYYMMDD format (in Spanish, YYMMDD, year, month and day), and expressed in a string of 8 characters (char [8]).

-Tipo de moneda (euro, dólar, yen...). Es una cadena de 15 caracteres (char[15]). -Importe de la cantidad a pagar. Es una cifra de 64 bits (u64), y cuyo rango, por tanto, se extiende desde el número 0 hasta el 18.446.744.073.709.551.615.-Type of currency (euro, dollar, yen ...). It is a 15 character string (char [15]). -Amount of the amount to be paid. It is a 64-bit figure (u64), and whose range, therefore, extends from the number 0 to 18,446,744,073,709,551,615.

-Importe de la cantidad a pagar, expresado en letras, y concretamente en una cadena de 50 caracteres (char[50]).-Amount of the amount to be paid, expressed in letters, and specifically in a string of 50 characters (char [50]).

-Número de serie. Es una cadena de 9 caracteres (char[9]).-Serial number. It is a 9 character string (char [9]).

-Tributo. Indica la cantidad pagada por las partes, en concepto de timbre.-Tribute. Indicates the amount paid by the parties, as stamp duty.

-Certificado digital (X.509) del tenedor y del librador, necesarios para que sus firmas sean consideradas jurídicamente vinculantes, en los términos del artículo 25.2 del Reglamento Europeo n° 910/2014 (Reglamento eIDAS). Los certificados se guardan en formato DER, y constan de 734 bytes (char[734]) cada uno.-Digital certificate (X.509) of the holder and the drawer, necessary for their signatures to be considered legally binding, in the terms of article 25.2 of European Regulation 910/2014 (eIDAS Regulation). Certificates are saved in DER format, and consist of 734 bytes (char [734]) each.

-IBAN de la cuenta bancaria del tenedor, donde se ha de realizar el pago. Cadena de 34 bytes (char[34]).-IBAN from the holder's bank account, where the payment is to be made. 34-byte string (char [34]).

-Certificado digital del librado (el deudor de la letra).-Digital certificate of the drawee (the debtor of the bill).

-Fecha del vencimiento, codificada en formato YYYYMMDD, y expresada en una cadena de 8 caracteres (char[8]).-Expiration date, encoded in YYYYMMDD format, and expressed in a string of 8 characters (char [8]).

-Firma del librador. Cadena de 256 bytes (char[256]).-Signature of the drawer. 256-byte string (char [256]).

-Firma del tenedor. Cadena de 256 bytes (char[256]).-Signature of the fork. 256-byte string (char [256]).

-Firma del librado (deudor). Cadena de 256 bytes (char[256]) que se adjunta una vez que el librado ha aceptado la letra. -Signature of the drawee (debtor). 256-byte string (char [256]) that is attached once the drawee has accepted the letter.

Los parámetros de las líneas 23 a 25 reciben el nombre genérico de sección de enlace, y se utilizan para la reconstrucción del tracto sucesivo cambiario: The parameters of lines 23 to 25 are given the generic name of link section, and are used for the reconstruction of the successive exchange tract:

-El campo endoso es un booleano que señala si la letra ha sido transmitida (o no) a una tercera persona por medio de un endoso.-The endorsement field is a Boolean that indicates whether the letter has been transmitted (or not) to a third person by means of an endorsement.

-En el caso de que se haya producido un endoso, el campo direccion_endoso contendrá la dirección donde se haya ubicada la letra anterior.-In the event that there has been an endorsement, the direccion_endoso field will contain the address where is located the previous letter.

-Por último, un booleano señala si la letra ha sido aceptada por el librado o no. Su valor originario es 0. Cuando la letra se acepta, su valor cambia a uno.-Finally, a Boolean indicates whether the letter has been accepted by the drawee or not. Its original value is 0. When the letter is accepted, its value changes to one.

Las tres últimas líneas, que conforman la sección de encriptación, almacenarán la clave simétrica encriptada con las claves públicas del librador, el librado y la autoridad estatal emisora de los certificados de identificación digital (en el caso español, la FNMT).The last three lines, which make up the encryption section, will store the symmetric key encrypted with the public keys of the drawer, the drawee and the state authority issuing the digital identification certificates (in the Spanish case, the FNMT).

Cada vez que un tomador se disponga a adquirir una letra de cambio, su ordenador generará un par de claves de criptografía asimétrica, y a partir de la clave pública calculará una dirección electrónica, que será donde se almacene la letra. Una vez creada la cuenta, se modificará su clave privada, haciéndola corresponder con la del certificado. El procedimiento de creación y almacenamiento de la letra será el establecido en el apartado c).Each time a policyholder prepares to acquire a bill of exchange, his computer will generate a pair of asymmetric cryptography keys, and from the public key it will calculate an electronic address, which will be where the bill is stored. Once the account is created, its private key will be modified, making it correspond to that of the certificate. The procedure for creating and storing the letter will be that established in section c).

b) Ofuscación de los datos de la letra de cambiob) Obfuscation of bill of exchange data

A diferencia de lo que sucede con los derechos reales sobre bienes inmuebles, que están sometidos al principio de publicidad formal y cuyos datos están por lo tanto están a disposición de terceras personas, la tenencia de un documento cambiario sólo es conocida, en principio, por las personas que lo hayan otorgado.Unlike what happens with real property rights, which are subject to the principle of formal publicity and whose data is therefore available to third parties, the possession of an exchange document is only known, in principle, by the people who have granted it.

Por este motivo, es necesario crear mecanismos de ofuscación en la blockchain, que aseguren que el contenido de los documentos cambiarios sólo sea accesible para las personas que dispongan de una clave determinada.For this reason, it is necessary to create obfuscation mechanisms in the blockchain, which ensure that the content of exchange documents is only accessible to people who have a specific key.

La presente invención incorpora el siguiente mecanismo: The present invention incorporates the following mechanism:

-Los datos de la sección dispositiva será encriptados utilizando el sistema de encriptación simétrica AES (Advanced Encryption Standard), utilizando para ello una clave simétrica generada por el ordenador del librador. Esta clave será compartida con el tomador y los demás tenedores ulteriores de la letra, de tal manera que todos ellos tengan acceso a los datos de todo el tracto sucesivo cambiario. -The data of the operative section will be encrypted using the symmetric encryption system AES ( Advanced Encryption Standard), using a symmetric key generated by the drawer's computer. This key will be shared with the borrower and the other subsequent holders of the bill, in such a way that they all have access to the data of the entire successive exchange tract.

-Los datos de la sección identificativa y de la sección de enlace permanecerán sin encriptar.-The data of the identifying section and the link section will remain unencrypted.

-La clave simétrica será a su vez encriptada utilizando para ello las claves públicas del tomador, del librador y de la autoridad pública encargada de los expedir los certificados digitales. El resultado se almacenará en los campos clave_librador, clave_tomador y clave_autoridad, respectivamente (todos ellos ubicados en la sección de encriptación). Cada vez que el tomador y el librador pretendan recuperar la clave simétrica original, podrán hacerlo utilizando para ello sus respectivas claves privadas.-The symmetric key will in turn be encrypted using the public keys of the policyholder, the drawer and the public authority in charge of issuing the digital certificates. The result will be stored in the fields key_librador, key_taker and key_authority, respectively (all of them located in the encryption section). Each time the borrower and the drawer intend to recover the original symmetric key, they may do so using their respective private keys.

c) Libramientoc) Bypass

El acto por el cual se emite una letra de cambio se denomina libramiento o giro. En el acto intervienen dos personas: el librador y el primer tenedor de la letra de cambio, denomina tomador. El librador ordena a una tercera persona, el deudor (también llamado librado), pagar una cierta cantidad de dinero al tomador en un tiempo determinado. El deudor no interviene en el libramiento, y no queda obligado cambiariamente hasta que no acepte la letra de cambio, transformándose a partir de ese momento en el aceptante. La relación jurídica existente entre el librador y el deudor se denomina relación de cobertura, la existente entre el librador y el tomador se llama relación de valuta.The act by which a bill of exchange is issued is called a draft or draft. Two people intervene in the act: the drawer and the first holder of the bill of exchange, called the payee. The drawer orders a third person, the debtor (also called the drawee), to pay a certain amount of money to the payee in a specified time. The debtor does not intervene in the settlement, and is not obliged to exchange until he accepts the bill of exchange, becoming the acceptor from that moment. The existing legal relationship between the drawer and the debtor is called the hedging relationship, the existing one between the drawer and the borrower is called the valuta relationship.

El libramiento de una letra de cambio electrónica se estructura en las siguientes fases:The issuance of an electronic bill of exchange is structured in the following phases:

-A través de la web de la autoridad fiscal competente, el usuario comprará el timbre electrónico necesario para dar validez a la letra. La autoridad entregará al usuario un JSON con los valores de los campos numero_serie, clase y tributo, así como con la firma (“timbre”) de los mismos por parte de dicha autoridad. A cada uno de estos campos se le aplicará la función hash Keccak-256. Las tres cadenas de 256 bits resultantes serán ensambladas y al conjunto se le aplicará de nuevo la misma función. Seguidamente, al resultado se le aplicará la clave privada del certificado raíz de la citada autoridad, y con ello se obtendrá el timbre electrónico a incorporar a la letra de cambio, que será entrado al librador vía protocolo TLS.-Through the website of the competent tax authority, the user will buy the necessary electronic stamp to validate the letter. The authority will provide the user with a JSON with the values of the fields serial_number, class and tribute, as well as the signature ( "stamp") of the same by said authority. The Keccak-256 hash function will be applied to each of these fields. The three resulting 256-bit strings will be assembled and the same function will be applied to the set again. Next, the result will be applied the private key of the root certificate of the said authority, and with this the electronic stamp to be incorporated into the bill of exchange will be obtained, which will be entered to the drawer via TLS protocol.

-De una forma externa a la blockchain, el tomador enviará en formato JSON su certificado y sus datos bancarios al librador, que rellenará los datos restantes de la letra de cambio (aún sin encriptar). La firma del tomador recaerá sobre las secciones identificativa y dispositiva del documento. La letra firmada será enviada al tomador, que también firmará las mismas secciones. La firma de los participantes se realizará sobre los datos aún no encriptados, puesto que en caso contrario, cualquiera de las dos partes podría instar la nulidad del negocio cambiario, alegando la existencia de error (que es un vicio de la voluntad invalidante de un negocio jurídico, conforme a lo dispuesto en múltiples ordenamientos civil europeos).-In a way external to the blockchain, the policyholder will send their certificate and bank details to the drawer in JSON format, who will fill in the remaining data of the bill of exchange (not yet encrypted). The signature of the policyholder will fall on the identifying and operative sections of the document. The signed letter will be sent to the policyholder, who will also sign the same sections. The signature of the participants will be made on the data not yet encrypted, since otherwise, either of the two parties could urge the invalidity of the exchange business, claiming the existence of error (which is a vice of the invalidating will of a business legal, in accordance with the provisions of multiple European civil laws).

-Las secciones identificativa y dispositiva del documento serán encriptadas siguiendo el procedimiento establecido en la sección b).-The identifying and operative sections of the document will be encrypted following the procedure established in section b).

-El ordenador del tomador generará un par de claves, pública y privada. A partir de la primera se calculará la dirección electrónica de la cuenta donde se almacenará la futura letra de cambio.-The policyholder's computer will generate a pair of keys, public and private. From the first, the email address of the account where the future bill of exchange will be stored will be calculated.

-La clave privada de la cuenta del tomador será modificada y se hará coincidir con la correspondiente a su certificado digital.-The private key of the policyholder's account will be modified and will match the one corresponding to his digital certificate.

-Por último, el envío de la letra a la blockchain se realizará mediante una transacción por parte del tomador a la cuenta de la FNMT, en la que invocará la función librar_letra dentro del módulo Emisor. Los parámetros de la transacción serán el lugar (lugar_i), y la fecha (fecha_i) del libramiento, la moneda (moneda_i) en que se realiza, su importe en número (importe_i) y letra (importe_letra_i), el número de serie (numero_serie_i), el timbre electrónico (timbre_i), el certificado del librador (certificado_librador_i), la firma del librador (firma_librador_i), el certificado del tomador (certificado_tenedor_i), el IBAN del tomador (IBAN_i), la fecha del vencimiento (fecha_vencimiento_i) y las claves encriptadas del librador, el tomador y la autoridad estatal encargada de expedir los certificados electrónicos (clave_librador_i, clave_tomador_i, clave_autoridad_i). La transacción será firmada por el librador y el tomador.-Finally, the letter will be sent to the blockchain by means of a transaction by the borrower to the FNMT account, in which the librar_letra function will be invoked within the Issuer module. The parameters of the transaction will be the place ( place_i), and the date ( date_i) of the settlement, the currency (currency_i ) in which it is carried out, its amount in number ( amount_i) and letter ( amount_letra_i), the serial number ( number_serie_i ), the electronic stamp ( timbre_i), the certificate of the drawer ( certificate_librador_i), the signature of the drawer ( firma_librador_i), the certificate of the policyholder ( certificate_tenedor_i), the IBAN of the policyholder ( IBAN_i), the expiration date ( expiration_date_i) and the encrypted keys of the drawer, the policyholder and the state authority in charge of issuing the electronic certificates ( key_librador_i, key_taker_i, key_authority_i). The transaction will be signed by the drawer and the borrower.

La función librar_letra debe tener una estructura similar a la siguiente:The function librar_letra should have a structure similar to the following:

1: module Emisor{1: Emitter module {

2: public librar_letra(lugar_libramiento_i, fecha_libramiento_i, moneda_i, importe_i, importe_letra_i, 3: numero_serie_i, timbre_i, certificado_librador_i, firma_librador_i, certificado_tenedor_i, firma_tenedor_i, IBAN_i, fecha_vencimiento_i, firma_librador_i, firma_tenedor_i, clave_tomador_i, clave_librador_i, clave_tomador_i): Letra {2: public release_letter (release_place_i, release_i_date, currency_i, amount_i, amount_i, 3: serial_number_i, stamp_i, release_certificate_i, release_signature_i, holder_certificate_i, holder_signature_i, IBAN_i, expiration_date_i, release_signature_i, holder_signature_i, holder_key_i, holder_key_i, holder_key_i): Letter {

////

// En las primeras líneas de código, la función comprueba que la firma de la transacción por el librador y el librado es válida// In the first lines of code, the function checks that the signature of the transaction by the drawer and the drawee is valid

////

100: RejectUnless(numero_serie != 0);100: RejectUnless (serial_number! = 0);

101: move_to_sender<Letra>(101: move_to_sender <Letter> (

102: Letra {102: Letter {

103: lugar_libramiento: lugar_libramiento_i,103: release_place: release_place_i,

104: fecha_libramiento: fecha_libramiento_i,104: release_date: release_date_i,

105: moneda: moneda_i,105: currency: currency_i,

106: importe: importe_i,106: amount: amount_i,

107: importe_letra: importe_letra_i,107: letter_amount: letter_amount_i,

108: numero_serie: numero_serie_i,108: serial_number: serial_number_i,

109: timbre: timbre_i,109: timbre: timbre_i,

110: certificado_librador: certificado_librador_i,110: release_certificate: release_certificate_i,

111: certificado_tenedor: certificado_tenedor_i,111: holder_certificate: holder_certificate_i,

112: IBAN_tenedor: IBAN_i,112: IBAN_fork: IBAN_i,

113: fecha_vencimiento: fecha_vencimiento_i,113: expiration_date: expiration_date_i,

114: firma_librador: firma_librador_i,114: release_signature: release_signature_i,

115: firma_tenedor: firma_tenedor_i,115: fork_signature: fork_signature_i,

clave_librador: clave_tomador_i,release_key: taker_key_i,

clave_tomador: clave_librador_i,taker_key: release_key_i,

clave FNMT: clave tomador iFNMT code: taker code i

116: }116:}

117: );117:);

118: }118:}

119: //...119: // ...

120: }120:}

En términos generales, podemos realizar las siguientes observaciones:In general terms, we can make the following observations:

-En las cuatro primeras líneas se fijan los parámetros de entrada de la función, que son precisamente, los datos necesarios para librar la letra de cambio. -In the first four lines the input parameters of the function are set, which are precisely the data necessary to issue the bill of exchange.

-En las líneas 5 a 99, que no aparecen desarrolladas en el diagrama de arriba, la función comprobará que la cantidad transferida a la cuenta FNMT es igual a la descrita en el campo timbre, y que las firmas de los participantes son válidas.-In lines 5 to 99, which are not developed in the diagram above, the function will check that the amount transferred to the FNMT account is the same as that described in the stamp field, and that the signatures of the participants are valid.

-Por último, en las líneas, 101 a 114, la función rellena la plantilla de la letra de cambio con los datos de entrada proporcionados en las cuatro primeras líneas. Tras ello, la letra es enviada a la dirección electrónica del librador (línea 101, instrucción move_to_sender).-Finally, on lines 101 to 114, the function fills in the bill of exchange template with the input data provided in the first four lines. After that, the letter is sent to the electronic address of the drawer (line 101, move_to_sender instruction).

d) Endosod) Endorsement

El endoso es aquel negocio jurídico en cuya virtud el tenedor de un título a la orden transfiere su posición jurídica de acreedor cambiario a otra persona. En los títulosvalores documentados en papel, el endoso se hace constar en el dorso del mismo documento donde consta la letra de cambio, como una suerte de añadido al documento cambiario original, tal y como se muestra en la imagen:The endorsement is that legal business by virtue of which the holder of a title to the order transfers his legal position of exchange creditor to another person. In the securities documented on paper, the endorsement is recorded on the back of the same document where the bill of exchange appears, as a kind of addition to the original exchange document, as shown in the image:

En el plano electrónico este trabajo propone que los endosos sean representados por un recurso específico, denominado Endoso, que quedaría vinculado a una determinada letra de cambio por medio de una referencia (hash) a los contenidos de esta última. La estructura de cada endoso es relativamente simple:At the electronic level, this work proposes that endorsements be represented by a specific resource, called Endorsement, which would be linked to a specific bill of exchange by means of a reference ( hash) to the contents of the latter. The structure of each endorsement is relatively simple:

1: module Emisor{1: Emitter module {

2: resource Endoso {2: resource Endorsement {

3: numero_endoso: int, // Posición en la cadena de endosos3: endorsement_number: int, // Position in the endorsement chain

4: direccion_anterior: address, // Dirección anterior en la cadena de endosos4: old_address: address, // Previous address in endorsement chain

5: hash_letra: char[256], // Hash de los contenidos encriptados del endoso (o la letra letra) anterior5: hash_letra: char [256], // Hash of the encrypted contents of the endorsement (or the letter letter) above

6: certificado_endosatario: char[734], // Certificado del endosatario 7: IBAN_endosatario, // Cuenta del endosatario6: endorsee_certificate: char [734], // Endorsee certificate 7: endorsee_IBAN, // Endorsee account

7: nuevo_endoso: bool, // ¿Ha habido un nuevo endoso? 8: direccion_siguiente: address, // Dirección siguiente en la cadena de endosos7: new_endoso: bool, // Has there been a new endorsement? 8: next_address: address, // Next address in endorsement chain

(nulo, si se trata del último endoso)(null, if it is the last endorsement)

9: firma_endosante: char[256] // Firma del endosante9: endorser_signature: char [256] // Endorser signature

10: firma_endosatario: char[256] // Firma del endosatario10: endorsee_signature: char [256] // Endorsee's signature

clave_endosatario: // Clave simétrica encriptada con la clave pública del endosatarioendorsee_key: // Symmetric key encrypted with the public key of the endorsee

//...// ...

21: }twenty-one: }

22: //...22: // ...

23: }2. 3: }

Los datos contenidos en este recurso son los siguientes:The data contained in this resource are the following:

-La variable direccion_anterior (línea 4) alberga la dirección de la cuenta donde se haya almacenado la letra de cambio original (en el caso de que se trate del primer endoso), o bien la del endoso inmediatamente anterior (en el caso en que previamente haya habido otro endoso). De este modo, se forma una suerte de “tracto sucesivo cambiario”, en cuyo inicio se encuentra la letra de cambio original, tal y como fue librada, y en cuyo final se sitúa el último endoso. Este tracto sucesivo es reforzado por medio de una referencia criptográfica (hash) al documento cambiario inmediatamente anterior (letra o endoso). El número de endosos producidos hasta el momento quedará registrado en la variable numero_endoso. -The direccion_anterior variable (line 4) contains the address of the account is stored letter original change (in the event that the case of the first endorsement) or that of the immediately preceding endorsement (in the case where previously there has been another endorsement). In this way, a sort of "successive exchange tract" is formed, at the beginning of which is the original bill of exchange, as it was drawn, and at the end of which is the last endorsement. This successive tract is reinforced by means of a cryptographic reference ( hash) to the immediately preceding exchange document (letter or endorsement). The number of endorsements produced so far will be recorded in the variable number_endoso.

-Como en otros casos, el recurso (en este caso, el endoso) deberá almacenar el certificado electrónico de su titular (certificado_endosatario). -As in other cases, the resource (in this case, the endorsement) must store the electronic certificate of its holder ( certificate_endosatario).

-Si la letra de cambio ha sido endosada de nuevo, el booleano al que hace referencia la línea 7 tomará el valor de uno, y la dirección del nuevo endoso será almacenada dentro de la variable direccion_siguiente. -If the bill of exchange has been endorsed again, the Boolean referenced by line 7 will take the value of one, and the address of the new endorsement will be stored in the variable next_address.

Todos los datos reseñados serán encriptados, salvo los almacenados en los campos nuevo_endoso, direccion_anterior y dirección_siguiente, que conservarán sus valores originales.All the data reviewed will be encrypted, except for those stored in the new_endoso, previous_address and next_address fields, which will retain their original values.

Los endosos electrónicos se realizan mediante un procedimiento muy parecido al del giro de la letra: En primer lugar, el endosatario envía su certificado y sus datos bancarios al endosante. El endosante descifra la clave simétrica gracias a su clave privada y la vuelve a cifrar con la clave pública del certificado del endosatario, y lo guarda en el campo clave_endosatario. Tras ello, rellenará los datos restantes del endoso, y calculará dos firmas: Una sobre los datos sin encriptar (exigencia del Derecho Civil) y otra sobre los datos encriptados (exigencia del protocolo de Libra). Ambas se enviarán al endosatario, junto con el contenido de la letra.Electronic endorsements are made through a procedure very similar to that of the draft: First, the endorsee sends his certificate and bank details to the endorser. The endorser decrypts the symmetric key thanks to his private key and re-encrypts it with the public key of the endorsee's certificate, and save in the field recipient_key. After that, it will fill in the remaining data of the endorsement, and will calculate two signatures: One on the unencrypted data (requirement of Civil Law) and another on the encrypted data (requirement of the Libra protocol). Both will be sent to the endorsee, along with the content of the letter.

Seguidamente, el endosatario enviará un mensaje a la cuenta de la FNMT, invocando la función construir_tracto, que llevará por parámetro la dirección del documento electrónico que se va a endosar. Por medio de las referencias direccion_anterior (que no está encriptada) y hash, la función reconstruirá la cadena de endosos, remontándose hasta la letra original. Los datos de toda la cadena serán enviados al endosatario, que los descifrará, y comprobará la validez de los mismos.Next, the endorsee will send a message to the FNMT account, invoking the construct_tracto function, which will have the address of the electronic document to be endorsed as a parameter. Using the old_address (which is not encrypted) and hash references, the function will rebuild the endorsement chain, going back to the original letter. The data of the entire chain will be sent to the endorsee, who will decrypt them, and check their validity.

Si todo es correcto, el endosatario firmará los datos del nuevo endoso, los encriptará y los enviará mediante una transacción a la cuenta de la FNMT. La transacción invocará la función publicar_endoso, que como su propio nombre indica publicará un nuevo Endoso en la cuenta del endosatario. Los parámetros de la transacción (y de la función) vendrán constituidos por todos los extremos del nuevo endoso, así como por la firma del endosante de los datos encriptados de la letra. La función publicar_endoso, que debería ser ejecutada por todos los nodos de la red, tendría en lenguaje Move IR la estructura siguiente:If everything is correct, the endorsee will sign the new endorsement data, encrypt it and send it through a transaction to the FNMT account. The transaction will invoke the function publish_endoso, which as its name suggests will publish a new Endorsement on the endorsee's account. The parameters of the transaction (and of the function) will be constituted by all the ends of the new endorsement, as well as by the signature of the endorser of the encrypted data of the letter. The publish_endoso function, which should be executed by all the nodes of the network, would have the following structure in Move IR language:

1: module Emisor{1: Emitter module {

2: public publicar_endoso (...) {2: public publish_endoso (...) {

////

... // En estas líneas la función calculará el hash de los contenidos publicados // del endoso anterior, y comprobará que los datos (encriptados) del // nuevo endoso han sido firmados por el endosante //... // In these lines the function will calculate the hash of the published contents // of the previous endorsement, and it will check that the (encrypted) data of the // new endorsement has been signed by the endorser //

101: let direccion_endosatario address = GetTxnSenderAddress();101: let recipient_address address = GetTxnSenderAddress ();

102: let ref_endosante: &mut Endoso = BorrowGlobal<Endoso>(move(direccion_endosante));102: let endor_ref: & mut Endorsement = BorrowGlobal <Endorse> (move (endorse_address));

103: let ref_endosatario: &mut Endoso = BorrowGlobal<Endoso>(move(direccion_endosatario));103: let recipient_ref: & mut Endorsement = BorrowGlobal <Endoso> (move (recipient_address));

104: numero_endoso_i = *move(&mut move(ref_endoso_endosante).numero_endoso) 1;104: end_number_i = * move (& mut move (endorsement_ref). endorsement_number) 1;

105: *move(&mut move(ref_endosante).endoso) = 1;105: * move (& mut move (end_ref). Endor) = 1;

106: *move(&mut move(ref_endosante).direccion_siguiente) = direccion_endosatario;106: * move (& mut move (sender_ref) .next_address) = recipient_address;

201: move_to_sender<Endoso>(201: move_to_sender <Endoso> (

202: Endoso {202: Endorsement {

203: certificado_endosatario: certificado_endosatario_i,203: recipient_certificate: recipient_certificate_i,

204: IBAN_endosatario: IBAN_endosatario_i,204: IBAN_endosatario: IBAN_endosatario_i,

numero_endoso: numero_endoso_inumber_endoso: number_endoso_i

}}

))

}}

En sus primeras líneas (2 a 106), no reproducidas en el esquema, la función verificará la firma del endosante, calculará el hash del endoso anterior, y modificará dos de los campos de este último: el booleano nuevo_endoso tomará el valor de uno, y la variable direccion_siguiente, la dirección del nuevo endoso. Seguidamente se rellenarán los datos del nuevo endoso, y éste será publicado en la cuenta del endosatario.In its first lines (2 to 106), not reproduced in the schema, the function will verify the signature of the endorser, it will calculate the hash of the previous endorsement, and it will modify two of the fields of the latter: the boolean new_endoso will take the value of one, and the variable next_address, the address of the new endorsement. The details of the new endorsement will then be filled in, and it will be published in the endorsee's account.

e) Recuperación de contraseñase) Password recovery

Dado que el poder de disposición sobre tokens y criptomonedas está intrínsecamente vinculado a una clave privada, la pérdida de esta última por parte de su titular conlleva la imposibilidad del ejercicio del derecho. Para prevenir este indeseable resultado, en el caso de los títulos-valores emitidos nominativamente o a la orden, el módulo emisor deberá de disponer de una función, recuperar_contraseña, para recobrar las claves perdidas.Given that the power of disposal over tokens and cryptocurrencies is intrinsically linked to a private key, the loss of the latter by its holder entails the impossibility of exercising the right. To prevent this undesirable result, in the case of securities issued by name or to order, the issuing module must have a function, recover_password, to recover the lost keys.

El usuario que pretenda recuperar su clave debe previamente obtener un nuevo certificado digital de parte de la FNMT, y abrir una nueva cuenta dentro de la blockchain de Libra. Seguidamente, desde esta cuenta enviará una transacción invocando la función recuperar_contraseña. Sus parámetros serán dos: The user who intends to recover his key must previously obtain a new digital certificate from the FNMT, and open a new account within the Libra blockchain. Next, from this account, it will send a transaction invoking the retrieve_password function. Its parameters will be two:

-El nuevo certificado electrónico, encriptado con la clave pública del certificado raíz de la FNMT.-The new electronic certificate, encrypted with the public key of the FNMT root certificate.

-La dirección donde se alberga la letra de cambio cuya contraseña se ha perdido.-The address where the bill of exchange whose password has been lost is housed.

La función comprobará que el nuevo certificado es válido, y que el viejo ha sido revocado, y que ambos corresponden a la misma persona. Si la comprobación ha sido exitosa, la función ordenará un tipo de endoso específico (firmado esta vez con la clave privada del certificado raíz de la FNMT), cuya dirección de destino será, precisamente, la nueva cuenta de donde procede la transacción. La clave simétrica será encriptada con la clave pública del nuevo certificado, y se almacenará en el campo clave_endosatario del nuevo endoso.The function will check that the new certificate is valid, and that the old one has been revoked, and that both correspond to the same person. If the verification has been successful, the function will order a specific type of endorsement (signed this time with the private key of the root certificate of the FNMT), whose destination address will be, precisely, the new account from which the transaction originates. The symmetric key will be encrypted with the public key of the new certificate, and it will be stored in the recipient_key field of the new endorsement.

f) Aceptaciónf) Acceptance

La aceptación es aquel acto por el librado presta su consentimiento para convertirse en obligado cambiario, comprometiéndose con ello a ejecutar el mandado de pago ordenado por el librador. Sólo es necesaria cuando la letra es exigible a un plazo desde la vista.Acceptance is that act by the drawee gives his consent to become a foreign exchange obligee, thereby committing himself to execute the payment order ordered by the drawer. It is only necessary when the letter is enforceable at a time from sight.

La aceptación puede realizarse en el mismo momento en que la letra es girada o puede realizarse con posterioridad. En el primer caso, el documento original deberá incorporar el certificado del librado, su domicilio, así como la firma de este último sobre todos los datos de la misma, en los mismos términos que se exigen al tenedor. El booleano aceptada deberá de tener el valor 1.Acceptance can be done at the same time the letter is rotated or can be done later. In the first case, the original document must include the certificate of the drawee, his address, as well as the signature of the latter on all the data of the same, in the same terms that are required of the holder. The accepted boolean must have the value 1.

Si la aceptación se realiza con posterioridad, el librado deberá de enviar una transacción a la FNMT, invocando la función aceptar_letra, dentro del módulo Emisor. Los parámetros de esta función vendrán constituidos por la dirección de la letra, así como el certificado y la firma del librado. La función comprobará que la cadena ID_librado, que tenía efectos identificativos, está presente en el certificado del librado, y que este último es válido, y no ha sido revocado. Si la verificación de la firma arroja un resultado positivo, el certificado del librado se incorporará a la letra de cambio original, cuyo booleano aceptada tomará el valor de 1.If the acceptance is made later, the drawee must send a transaction to the FNMT, invoking the function accept_letter, within the Issuer module. The parameters of this function will be made up of the address of the letter, as well as the certificate and signature of the drawee. The function will check that the string ID_librado, which had identification effects, is present in the certificate of the drawee, and that the latter is valid, and has not been revoked. If the signature verification yields a positive result, the drawee's certificate will be incorporated into the original bill of exchange, whose accepted Boolean will take the value of 1.

g) Presentación al pago y cancelación de la letra g) Presentation for payment and cancellation of the bill

Cuando llegue la fecha del vencimiento, la letra podrá ser presentada al pago ante la entidad bancaria correspondiente donde tuviese domiciliada su cuenta el librado. Se creará un nuevo recurso denominado Cancelacion dentro de la cuenta que la entidad bancaria tenga en la blockchain. La estructura del recurso Cancelacion será la siguiente:When the expiration date arrives, the bill may be presented for payment to the corresponding bank where the drawee had his account domiciled. A new resource called Cancellation will be created within the account that the bank has on the blockchain. The structure of the Cancellation resource will be as follows:

1: module Emisor{1: Emitter module {

2: resource Cancelacion {2: resource Cancellation {

3: numero_endoso: int, // Posición en la cadena de endosos3: endorsement_number: int, // Position in the endorsement chain

4: direccion_presentante: address, // Dirección de la cuenta del presentante4: address_presentante: address, // Address of the account of the presenter

5: hash_letra: char[256], // Hash de los contenidos encriptados en el documento cambiario del presentante5: hash_letra: char [256], // Hash of the encrypted contents in the submitter's exchange document

6: certificado_banco: char[734], // Certificado del endosatario 7: firma_presentante: char[256] // Firma del endosante6: bank_certificate: char [734], // Endorsee certificate 7: representative_signature: char [256] // Endorser signature

8: firma_banco: char[256] // Firma del endosatario8: bank_signature: char [256] // Signature of the endorsee

9: clave_banco: // Clave simétrica encriptada con la clave pública del banco9: bank_key: // Symmetric key encrypted with the bank's public key

pagada: bool, // Letra pagadapaid: bool, // Letter paid

protestada: bool // Letra impagada y protestada //.protested: bool // Unpaid and protested letter //.

20: }twenty: }

11: //.eleven: //.

12: }12:}

El mecanismo de la presentación al pago es relativamente simple:The mechanism of submission to payment is relatively simple:

Una vez que la obligación cambiaria se haga exigible, el tenedor solicitará el pago de su letra a través del servidor del banco domiciliatario, de una forma completamente externa a la blockchain. Junto con la petición, enviará los datos encriptados de toda la cadena de endosos, así como la clave simétrica encriptada mediante la clave pública del Banco. El Banco descifrará la clave simétrica de la letra por medio de su clave privada, comprobará que todos los datos son correctos e intentará realizar una transferencia de fondos desde la cuenta del librado a la del tomador. Si las entidades bancarias de origen y de destino son diferentes, la letra y su cadena de endosos serán presentadas ante una Cámara de Compensación.Once the exchange obligation becomes enforceable, the holder will request the payment of his bill through the domiciliary bank's server, in a way that is completely external to the blockchain. Together with the request, it will send the encrypted data of the entire chain of endorsements, as well as the symmetric key encrypted using the Bank's public key. The Bank will decrypt the symmetric key of the letter by means of its private key, will verify that all the data is correct and will try to carry out a transfer of funds from the drawee's account to that of the policyholder. If the banking entities of origin and destination are different, the letter and its chain of endorsements will be presented before a Clearing House.

En el caso de que la transferencia de fondos haya sido exitosa, el booleano pagada tomará el valor de uno. Si la transferencia ha sido fallida, el booleano pagada tomará el valor cero, mientras que el booleano protestada tomará el valor uno. En ambos casos, el Banco enviará una transacción a la blockchain en la que ejecutará la función cancelar_letra. Esta última función comprobará que los datos han sido firmados por el donante, y si así ha sido, publicará un recurso Cancelacion en la dirección atribuida a la entidad bancaria. La cancelación de la letra implica que ya no podrán realizarse más endosos a la misma.In the event that the funds transfer has been successful, the paid boolean will take the value of one. If the transfer has been unsuccessful, the paid Boolean will take the value zero, while the protested Boolean will take the value one. In both cases, the Bank will send a transaction to the blockchain in which it will execute the cancel_letter function. This last function will check that the data has been signed by the donor, and if so, it will publish a Cancellation resource at the address assigned to the bank. The cancellation of the bill implies that no more endorsements can be made to it.

3.3- Cheques3.3- Checks

De acuerdo con su definición inglesa originaria, un cheque puede ser definido como "una letra de cambio pagadera a la vista, cuyo librado es un banco”.According to its original English definition, a check can be defined as "a bill of exchange payable on demand, the drawee of which is a bank."

Dentro del esquema que presentamos, los cheques están representados por recursos con exactamente la misma estructura interna que las letras de cambio. Son plenamente aplicables a los cheques electrónicos los mecanismos de libramiento, transmisión y presentación al pago de las letras de cambio, pero con las siguientes particularidades:Within the scheme that we present, checks are represented by resources with exactly the same internal structure as bills of exchange. The mechanisms for issuing, transmitting and presenting bills of exchange for payment are fully applicable to electronic checks, but with the following particularities:

a) En el plano escrito, los cheques no se emiten sobre papel timbrado, sino sobre un talonario proporcionado al librador por el propio banco librado. En el ámbito electrónico, los cheques, al igual que las letras de cambio, tienen una estructura cuádruple compuesta por las secciones identificativa, dispositiva, de enlace y de encriptación. La única particularidad de los cheques es que en su sección identificativa, es la entidad bancaria la que fija los valores relativos al número de serie, el tributo y la clase del documento. El timbre es sustituido por la firma del banco de estos tres campos, en la forma determinada en la sección 3.2.c). La emisión, transmisión y presentación al pago de los cheques se realizan mediante transacciones realizadas a la cuenta que el banco librado tiene en la blockchain, que albergará los módulos encargados de ejecutar cada una de las operaciones cambiarias. El código albergado en cada uno de los módulos tendrá que estar estandarizado y aprobado previamente por el Ministerio de Justicia o el de Economía.a) On the written plane, the checks are not issued on stamped paper, but on a checkbook provided to the drawer by the drawee bank itself. In the electronic field, checks, like bills of exchange, have a quadruple structure made up of identification, operative, link and encryption sections. The only peculiarity of the checks is that in their identification section, it is the bank that sets the values related to the serial number, the tax and the class of the document. The stamp is replaced by the bank's signature of these three fields, as determined in section 3.2.c). The issuance, transmission and presentation for payment of checks are carried out through transactions made to the account that the drawee bank has on the blockchain, which will house the modules in charge of executing each of the exchange operations. The code housed in each of the modules It will have to be standardized and previously approved by the Ministry of Justice or the Ministry of Economy.

b) Los cheques no necesariamente han de emitirse en forma nominativa. También pueden emitirse al portador. En este último caso, no es necesario adjuntar el certificado digital del tenedor a la sección identificativa del documento electrónico. El acreedor del cheque quedaría identificado exclusivamente con su clave pública, mientras que la pérdida de su clave privada implicaría el perjuicio definitivo del documento.b) Checks do not necessarily have to be issued in nominative form. They can also be issued to the bearer. In the latter case, it is not necessary to attach the holder's digital certificate to the identification section of the electronic document. The creditor of the check would be identified exclusively with his public key, while the loss of his private key would imply the definitive damage to the document.

c) En el cheque no es necesario fijar la fecha de su cobro. Será siempre pagadero a la vista.c) It is not necessary to set the date of its collection on the check. It will always be payable on demand.

3.4- Pagarés3.4- Promissory notes

Un pagaré es un documento cambiario en cuya virtud una persona, denominada firmante, se obliga a pagar a otra, denominada tenedor, una cantidad de dinero en una fecha determinada. Los pagarés son siempre nominativos, y no pueden transmitirse. Dado que no están destinados a circular, en ellos la relación jurídica que se documenta no es triangular, sino bilateral.A promissory note is an exchange document by virtue of which a person, called the signer, is obliged to pay another, called the holder, an amount of money on a certain date. Promissory notes are always nominative, and cannot be transferred. Since they are not intended to circulate, in them the legal relationship that is documented is not triangular, but bilateral.

En nuestra invención, la firma del pagaré se realiza mediante una transacción a la autoridad fiscal competente (en España, la FNMT), siguiendo un procedimiento similar al de la letra de cambio, sólo que en este caso, los campos relativos al librador de la letra y su tomador, dentro de la parte dispositiva, serán sustituidos por los del firmante del pagaré y su tenedor, respectivamente. Dado que los pagarés no son transmisibles, la sección de enlace será inexistente.In our invention, the signing of the promissory note is carried out through a transaction to the competent tax authority (in Spain, the FNMT), following a procedure similar to that of the bill of exchange, only in this case, the fields relating to the drawer Bill and its holder, within the operative part, will be replaced by those of the signer of the promissory note and its holder, respectively. Since the promissory notes are not transferable, the link section will be non-existent.

REALIZACIÓN PREFERENTE DE LA INVENCIÓNPREFERRED EMBODIMENT OF THE INVENTION

Una posible realización preferente de la invención vendría constituida por el libramiento de la letra de cambio, su posterior endoso y su presentación final al pago.A possible preferred embodiment of the invention would be constituted by the issuance of the bill of exchange, its subsequent endorsement and its final presentation for payment.

Ejemplo 1Example 1

Una persona ("Individuo A”) tiene un crédito de 10000 euros contra otra ("Individuo B”), que no es liquidable en este momento, sino que es pagadero en una fecha cierta situada en el futuro. El Individuo A, que no dispone de liquidez, desea contratar los servicios de una empresa ("Individuo C”), transmitiéndole el crédito el pago de dichos servicios. Para ello, se firma una letra de cambio electrónica, tomando el Individuo A la posición de librador, el Individuo B, la de librado, y el Individuo C la de tomador. One person ("Individual A") has a credit of 10,000 euros against another ("Individual B"), which is not payable at this time, but is payable at a certain date in the future. Individual A, who does not have liquidity, wishes to contract the services of a company ("Individual C"), transmitting the credit for the payment of said services. To do this, an electronic bill of exchange is signed, and Individual A takes the position as drawer, Individual B, as drawee, and Individual C as payee.

El librador ("Individuo A”) contacta con el servidor de una aplicación web, y a través de éste adquiere de la autoridad fiscal correspondiente (en España, la FNMT) el timbre electrónico necesario para otorgar el nuevo documento electrónico, recibiendo asimismo un número de serie y la clase del nuevo documento a librar. Los tres datos, que conforman la sección identificativa, se guardan en la tabla de una base de tos SQL del servidor, en la cual se guardarán también todos los demás extremos relativos al nuevo documento cambiario. A cada letra de cambio le corresponderá una fila dentro de dicha tabla. En este momento, la fila contiene los datos de la sección identificativa y aquellos datos relativos a la sección dispositiva correspondientes al librador (incluido su certificado digital), la cantidad debida y la fecha de vencimiento del documento.The drawer ("Individual A") contacts the server of a web application, and through it acquires from the corresponding tax authority (in Spain, the FNMT) the electronic stamp necessary to grant the new electronic document, also receiving a number of series and class of the new document to be released The three data, which make up the identifying section, are stored in the table of an SQL database on the server, in which all the other points relative to the new exchange document will also be stored. Each bill of exchange will correspond to a row within said table. At this moment, the row contains the data of the identification section and those data related to the operative section corresponding to the drawer (including its digital certificate), the amount owed and the expiration date of the document.

El tomador ("Individuo C”) contacta con la aplicación web y transmite su certificado digital y domicilio, que son guardados dentro de la base de datos SQL, en la fila correspondiente a la letra de cambio que se está librando. Una vez que los datos del tomador sean transmitidos, el servidor web generará una clave simétrica y la encriptará con las claves públicas de los certificados de tomador y librador. Con esto, quedarán completas la sección de identificativa, dispositiva y de encriptación. Dentro de la base de datos, la fila correspondiente a la letra de cambio se compondrá de los campos siguientes:The policyholder ("Individual C") contacts the web application and transmits his digital certificate and address, which are stored within the SQL database, in the row corresponding to the bill of exchange that is being issued. The policyholder's data is transmitted, the web server will generate a symmetric key and encrypt it with the public keys of the policyholder and drawer certificates. With this, the identification, device and encryption section will be completed. Within the database, the row corresponding to the bill of exchange will consist of the following fields:

numero_serie: 0 A 63957493serial_number: 0 A 63957493

clase: 10class: 10

tributo: 0,96tribute: 0.96

timbre: Firma de la FNMT española stamp: Signature of the Spanish FNMT

lugar_libramiento: Sevillarelease_place: Seville

fecha_libramiento: 27-02-2020release_date: 02-27-2020

moneda: euroeuro coin

importe_letra: Diez milletter_amount: Ten thousand

importe_numero: 10.000 amount_number: 10,000

certificado_librador: Certificado del Individuo A certificate_librador: Certificate of Individual A

domicilio_librador: Sevillahome_librador: Seville

certificado_tenedor: Certificado del Individuo C certificate_holder: Certificate from Individual C

domicilio_tenedor: Sevillaholder_home: Seville

IBAN_tenedor: IBAN del Individuo C IBAN_forward: Individual C's IBAN

fecha vencimiento: 01-01-2021expiration date: 01-01-2021

La letra podrá ser entonces firmada por las partes que recibirán por protocolo HTTPS una respuesta del servidor en la que constarán todos los datos de la letra. La letra se firmará por el navegador del usuario, que enviará al servidor una petición (también por protocolo HTTPS) cuyo cuerpo contendrá, estructuradas en formato JSON, el número de serie de la letra, la firma de sus datos encriptados (exigencia del protocolo Libra), así como la de los datos sin encriptar (exigencia jurídica).The letter can then be signed by the parties who will receive a response from the server via HTTPS protocol, which will include all the data of the letter. The letter will be signed by the user's browser, which will send the server a request (also by HTTPS protocol) whose body will contain, structured in JSON format, the serial number of the letter, the signature of its encrypted data (requirement of the Libra protocol ), as well as that of unencrypted data (legal requirement).

La aplicación web comprobará que las firmas son correctas, y que los certificados no han sido revocados. Si todo es correcto, enviará una transacción a la blockchain en la cual se invocará la función librar_letra, y se transmitirán todos los datos de la misma. El módulo librar_letra creará un recurso Letra en la cuenta del tomador, y con ello la creación del nuevo documento cambiario quedará completa.The web application will verify that the signatures are correct, and that the certificates have not been revoked. If everything is correct, it will send a transaction to the blockchain in which the librar_letra function will be invoked, and all its data will be transmitted. The librar_letra module will create a Letter resource in the policyholder's account, and with this the creation of the new exchange document will be complete.

Ejemplo 2Example 2

El día 27 de Julio de 2020, una persona (“Acreedor”) presta a otra ("Deudor”) 100.000 euros que se han de devolver en cuatro años, con un interés de 2.500 euros por año. Los contratantes transmiten sus datos a una aplicación web, que configura con ellos cuatro pagarés por un importe de 25.625 euros cada uno, que vencen respectivamente el día 27 de Julio de los años 2021, 2022, 2023 y 2024. Todos ellos son firmados por las partes y enviados a la blockchain, donde serán validados por un módulo de cuenta de la Fábrica Nacional de Moneda y Timbre (u otra autoridad fiscal equivalente). Si la validación es exitosa, los pagarés serán almacenados en la cuenta del acreedor, que podrá presentarlos al pago cuando lleguen las fechas de sus vencimientos. On July 27, 2020, one person ("Creditor") lends to another ("Debtor") 100,000 euros to be repaid in four years, with an interest of 2,500 euros per year. The contracting parties transmit their data to a web application, which configures with them four promissory notes for an amount of 25,625 euros each, which expire respectively on July 27, 2021, 2022, 2023 and 2024. All of them are signed by the parties and sent to the blockchain, where they will be validated by an account module of the National Mint and Stamp Factory (or other equivalent fiscal authority). If the validation is successful, the promissory notes will be stored in the creditor's account, who may present them for payment when the due dates arrive. their maturities.

Claims (5)

REIVINDICACIONES 1. Estructura de un nuevo tipo de documento cambiarlo electrónico caracterizado porque se compone de cuatro secciones denominadas identificativa, dispositiva, de enlace y de encriptación. La primera se utiliza para identificar el documento (número de serie, clase y tributo a pagar) e incluye el timbre electrónico expedido por la autoridad fiscal correspondiente. La segunda contiene todos los extremos relativos al derecho crediticio incorporado al documento cambiario (identificación de las partes, cantidad a pagar, fecha del vencimiento, cuenta bancaria domiciliataria, firma de las partes). La sección de enlace permite la transmisión del documento cambiario, y enlaza la letra/cheque primitivo con sus endosos posteriores por medio de funciones hash. La última sección (encriptación) ofusca en la blockchain los datos de la letra de cambio mediante el uso del sistema de encriptación simétrico AES (Advanced Encryption Standard). La clave simétrica utilizada es encriptada utilizando las claves públicas de las partes, que a su vez pueden recuperarlas utilizando sus respectivas claves privadas.1. Structure of a new type of electronic document, characterized in that it is made up of four sections called identifying, operative, link and encryption. The first is used to identify the document (serial number, class and tax to pay) and includes the electronic stamp issued by the corresponding tax authority. The second contains all the points related to the credit right incorporated into the exchange document (identification of the parties, amount to be paid, expiration date, domiciliary bank account, signature of the parties). The link section allows the transmission of the exchange document, and links the original draft / check with its subsequent endorsements by means of hash functions. The last section (encryption) obfuscates the bill of exchange data on the blockchain by using the symmetric encryption system AES ( Advanced Encryption Standard). The symmetric key used is encrypted using the parties' public keys, which in turn can retrieve them using their respective private keys. 2. Método para la creación de papel timbrado electrónico, caracterizado porque el timbre viene constituido por la firma de los datos de la sección identificativa del documento cambiario por parte de la autoridad fiscal. Dicha firma se realiza por el backend de su web y es entregada al usuario a través del protocolo HTTPS. Una vez que el documento cambiario es rellenado, firmado por las partes y enviado a la blockchain para su validación, un contrato inteligente/módulo, situado en la cuenta que dicha autoridad tiene en la blockchain, se encarga de verificar la firma y de comprobar que el número de serie del documento no ha sido utilizado previamente para librar otro documento cambiario.2. Method for creating electronic stamped paper, characterized in that the stamp is constituted by the signature of the data in the identification section of the exchange document by the tax authority. This signature is made by the backend of your website and is delivered to the user through the HTTPS protocol. Once the exchange document is filled in, signed by the parties and sent to the blockchain for validation, a smart contract / module, located in the account that said authority has on the blockchain, is in charge of verifying the signature and verifying that the document's serial number has not previously been used to issue another exchange document. 3. Método para librar electrónicamente letras de cambio, cheques, pagarés a la orden y otros documentos mercantiles, caracterizado porque la emisión de los documentos cambiarios se realiza por medio de un contrato inteligente (módulo) ubicado en la cuenta que la autoridad fiscal competente tiene en una blockchain privada gobernada por el protocolo de Libra u otro de funcionamiento similar. El documento cambiario toma la forma de un objeto JSON cuyo contenido es firmado electrónicamente por las partes por medio de su certificado digital y su clave privada. Seguidamente, el timbre de la autoridad fiscal competente es añadido al documento. 3. Method to electronically issue bills of exchange, checks, promissory notes and other commercial documents, characterized in that the exchange documents are issued through a smart contract ( module) located in the account that the competent tax authority has in a private blockchain governed by the Libra protocol or another of similar operation. The exchange document takes the form of a JSON object whose content is electronically signed by the parties through their digital certificate and private key. Next, the stamp of the competent tax authority is added to the document. 4. Método para endosar electrónicamente letras de cambio, cheques, pagarés a la orden y otros documentos mercantiles caracterizado porque cada endoso es representado por un recurso dentro del protocolo de Libra, que se relaciona con la letra/cheque original y con los endosos posteriores por medio de funciones hash incluidas en la sección de enlace. El conjunto formado por la letra de cambio/cheque y sus endosos posteriores se denomina tracto sucesivo cambiarlo, y es utilizado por los tribunales de justicia para determinar la validez o invalidez de las transmisiones del documento respectivo.4. Method to electronically endorse bills of exchange, checks, promissory notes and other commercial documents characterized in that each endorsement is represented by a resource within the Libra protocol, which is related to the original bill / check and subsequent endorsements by means of hash functions included in the link section. The set formed by the bill of exchange / check and its subsequent endorsements is called the successive tract to change it, and is used by the courts of justice to determine the validity or invalidity of the transmissions of the respective document. 5. Método para presentar al pago documentos cambiarios, caracterizado porque todo el tracto sucesivo cambiarlo es enviado mediante protocolo HTTPS a la web de la entidad bancaria domiciliataria, que determinará por medio de un programa ubicado en el lado del servidor (backend) si la cadena de endosos es válida y si existen suficientes fondos en la cuenta domiciliataria para hacer frente al pago del documento. En caso afirmativo, el banco realizará el pago y el booleano pagada tomará el valor de uno en el documento original. En caso contrario, el booleano protestada tomará el valor de uno en el documento original. En ambos casos, la entidad bancaria enviará un recurso Cancelacion a la blockchain para cerrar definitivamente el tracto sucesivo cambiario. En el caso de la apertura de juicio cambiario, la autoridad fiscal competente descifrará definitivamente la clave simétrica del tracto y la entregará al Letrado de la Administración de Justicia adscrito al tribunal donde se celebra el juicio, con el objetivo que el contenido descifrado de la letra y los endosos posteriores quede a disposición del órgano juzgador. 5. Method to present exchange documents for payment, characterized in that the entire successive tract of exchange is sent via HTTPS protocol to the website of the domiciliary banking entity, which will determine through a program located on the server side ( backend) if the chain endorsements is valid and if there are enough funds in the domiciliary account to meet the payment of the document. If so, the bank will make the payment and the boolean paid will take the value of one in the original document. Otherwise, the protested boolean will take the value of one in the original document. In both cases, the bank will send a Cancellation resource to the blockchain to definitively close the successive exchange tract. In the case of the opening of an exchange trial, the competent tax authority will definitively decipher the symmetric code of the tract and deliver it to the Lawyer of the Administration of Justice attached to the court where the trial is held, with the aim that the deciphered content of the letter and subsequent endorsements remain at the disposal of the judging body.
ES202030783A 2020-07-28 2020-07-28 Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding) Withdrawn ES2808412A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
ES202030783A ES2808412A1 (en) 2020-07-28 2020-07-28 Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
ES202030783A ES2808412A1 (en) 2020-07-28 2020-07-28 Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding)

Publications (1)

Publication Number Publication Date
ES2808412A1 true ES2808412A1 (en) 2021-02-26

Family

ID=74669601

Family Applications (1)

Application Number Title Priority Date Filing Date
ES202030783A Withdrawn ES2808412A1 (en) 2020-07-28 2020-07-28 Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding)

Country Status (1)

Country Link
ES (1) ES2808412A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
US20190147553A1 (en) * 2017-11-14 2019-05-16 TitleFlow LLC Storing linked lists of mineral rights transactions in directed acyclic graphs of cryptographic hash pointers
CN110033267A (en) * 2019-02-19 2019-07-19 阿里巴巴集团控股有限公司 Method, node, system and the storage medium of secret protection are realized in block chain
CN110580262A (en) * 2019-11-08 2019-12-17 支付宝(杭州)信息技术有限公司 Private data query method and device based on intelligent contract
US20200005282A1 (en) * 2018-06-28 2020-01-02 Coinbase, Inc. Wallet recovery method
EP3684005A1 (en) * 2019-01-18 2020-07-22 Telefonica Digital España, S.L.U. Method and system for recovering cryptographic keys of a blockchain network
US20200234386A1 (en) * 2016-08-18 2020-07-23 First American Financial Corporation Systems and methods for using blockchains to record, manage, and transfer ownership rights to land titles

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200234386A1 (en) * 2016-08-18 2020-07-23 First American Financial Corporation Systems and methods for using blockchains to record, manage, and transfer ownership rights to land titles
US20190147553A1 (en) * 2017-11-14 2019-05-16 TitleFlow LLC Storing linked lists of mineral rights transactions in directed acyclic graphs of cryptographic hash pointers
US20200005282A1 (en) * 2018-06-28 2020-01-02 Coinbase, Inc. Wallet recovery method
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
EP3684005A1 (en) * 2019-01-18 2020-07-22 Telefonica Digital España, S.L.U. Method and system for recovering cryptographic keys of a blockchain network
CN110033267A (en) * 2019-02-19 2019-07-19 阿里巴巴集团控股有限公司 Method, node, system and the storage medium of secret protection are realized in block chain
CN110580262A (en) * 2019-11-08 2019-12-17 支付宝(杭州)信息技术有限公司 Private data query method and device based on intelligent contract

Similar Documents

Publication Publication Date Title
US20220292471A1 (en) Universal tokenisation system for blockchain-based cryptocurrencies
US20230214792A1 (en) Computer implemented systems and methods
Bollen The Legal Status of Online Currencies–Are Bitcoins the Future?
CN108352016B (en) Data validation and storage
CN109074565A (en) Computer-implemented method and system for verifying a pass-through for blockchain based cryptocurrency
Velde Bitcoin: A primer
JPH11503541A (en) Electronic Funds Transaction Certificate
BR102014028305A2 (en) systems and methods for associating financial institution account and originator account and processing transaction requests
JP2001508883A (en) Method and system for processing electronic documents
TWM578836U (en) Financial authorization system for cross-bank accounts
Neguriţă Bitcoin–between legal and financial performance
US7434726B2 (en) Method and system for postdating of financial transactions
ES2808412A1 (en) Procedure for creating and transmitting exchange documents using DLT technology (Machine-translation by Google Translate, not legally binding)
KR20170136700A (en) System for managing electronic bill based on security token and method thereof
Greenspan Where blockchains add real value
Lukina et al. Electronic payment systems and blockchain as a constituent part
Gesmann-Nuissl Blockchain Technology in International Trade in Goods
Bizarro et al. Blockchain Explained and Implications for Accountancy
Pathak et al. Understanding Blockchain
Geva Payment in virtual currency
Prakash Cryptocurrency a digital wallet: PRO’S and CON’S
Sun Technical and Legal Foundation of Digital Debt Instruments
Maurya Blockchain Technology in the Development of Traditional Contract
Appel Basic Knowledge regarding Crypto Assets
Valentinovna et al. International cryptocurrency market and distinguishing features of its development

Legal Events

Date Code Title Description
BA2A Patent application published

Ref document number: 2808412

Country of ref document: ES

Kind code of ref document: A1

Effective date: 20210226

FA2A Application withdrawn

Effective date: 20210610