PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • BIP39 dictionaries
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts a buffer to a mnemonic phrase using the BIP39 algorithm.
Versions 27 and later
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
New in version 27
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Example
MyBuffer is Buffer = HexaToBuffer("0123456789ABCDEF")
 
Trace(BufferToPhrase(MyBuffer, languageFrench))
// contains "abreuver barrage espèce associer pointe véhicule"
 
Trace(BufferToPhrase(MyBuffer, languageEnglish))
// contains "abuse boss fly battle rubber waste"
 
Trace(BufferToPhrase(MyBuffer, languageSpanish))
// contient "abuelo azul filtro arte prueba vengar"
Syntax
<Result> = BufferToPhrase(<Buffer to use> [, <Dictionary>])
<Result>: Character string
Mnemonic phrase.
<Buffer to use>: Buffer
Buffer that will be used to generate the mnemonic phrase. The size of the buffer (in bytes) must be a multiple of 4 and less than or equal to 32.
<Dictionary>: Optional character string or integer constant
BIP39 dictionary to use. The words used in the mnemonic phrase will be taken from this dictionary. This parameter can correspond to:
  • the path of the BIP39 file to use.
  • a constant that specifies which dictionary will be used:
    languageEnglishUses the English BIP39 dictionary provided with the product.
    languageSpanishUses the Spanish BIP39 dictionary provided with the product.
    languageFrenchUses the French BIP39 dictionary provided with the product.
If this parameter is not specified, the function will use the BIP39 dictionary that corresponds to the current language in the executable (defined with Nation, for example).
If no dictionary is found, English will be used.
Remarks

BIP39 dictionaries

BIP39 dictionaries are not equivalent to standard language dictionaries. Their construction follows precise rules. It is recommended to use the BIP39 dictionaries included in the product (French, English, Spanish).
Business / UI classification: Business Logic
Component: wd270std.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
String to BufferToPhrase
MyBuffer is Buffer = Encode("teste", encodeBASE64)
Trace (BufferToPhrase(MyBuffer, languageEnglish)

// contains "gold deny ozone silk inspire ozone"


sPhraseEN is string = "gold deny ozone silk inspire ozone"
MyBuffer is Buffer = (BufferToHexa(PhraseToBuffer(sPhraseEN)))
sText is Buffer = HexaToBuffer(MyBuffer)
Trace (Decode(sText, encodeBASE64))

//contains "teste"
JOSÉ WILLEM
18 Jan. 2022